[Rd] Version 2.7 for Windows (PR#11399)

2008-05-08 Thread enmanhk
Full_Name: Charles Man
Version: 2.7
OS: XP and Vista
Submission from: (NULL) (219.79.247.35)


After installing the latest 2.7 on both Win XP SP2 and Win Vista Business SP1,
the program cannot load. An error message shows: "Fatal Error: Unable to Restore
a Saved File". I have to fall back to version 2.6

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] bug on compilation (PR#11395)

2008-05-08 Thread Uwe Ligges

This is not a BUG in R!!!
Please do read the R-FAQ on what a bug is and how to report it. If you 
have a question, please write to R-help *after* reading its posting guide.



[EMAIL PROTECTED] wrote:

Dear Mr.

Beginning to work on Linux.

I am trying to install R into Ubuntu Gustsy. I installed version 2.5.1 and 
worked fine. But then I tried to upgrade by adding these lines to sources.list:

deb http://cran.fiocruz.br/bin/linux/debian etch-cran/
deb http://cran.fiocruz.br/bin/linux/ubuntu gutsy/

I introduced the authorization keys (as recommended) and the files were 
downloaded. But then I tried to upgrade but some have problems on dependencies. 
What I did was to erase R folder installed on my /usr/lib and went to synaptic 
and uninstall all the cran files. The idea was to start over again.

But I try to install by apt and appears:

Os pacotes a seguir têm dependências desencontradas:
  r-base: Depende: r-base-core (>= 2.7.0-1gutsy0) mas 2.5.1-1 está para ser 
instalado
  r-recommended: Depende: r-base-core (>= 2.7.0-1gutsy0) mas 2.5.1-1 está para 
ser instalado
 Depende: r-cran-boot (>= 1.2.19) mas não vai ser instalado
 Depende: r-cran-cluster (>= 1.9.6-2) mas não vai ser instalado
 Depende: r-cran-foreign (>= 0.7-2) mas não vai ser instalado
 Depende: r-cran-kernsmooth (>= 2.2.14) mas não vai ser 
instalado
 Depende: r-cran-lattice (>= 0.10.11) mas não vai ser instalado
 Depende: r-cran-mgcv (>= 1.1.5) mas não vai ser instalado
 Depende: r-cran-nlme (>= 3.1.52) mas não vai ser instalado
 Depende: r-cran-rpart (>= 3.1.20) mas não vai ser instalado
 Depende: r-cran-survival (>= 2.13.2-1) mas não vai ser 
instalado
 Depende: r-cran-vr (>= 7.2.8) mas não vai ser instalado
 Depende: r-cran-codetools mas não vai ser instalado
E: Pacotes quebrados

I dowloaded the R-2.7.0 and tried to compile with the command ./configure. But  
what appeared at the end was (after a bunch of other things):

configure: error: --with-readline=yes (default) and headers/libs are not 
available

What should I do?



Install libreadline headers and libs?

Uwe Ligges



Hope you can help me.

Sincerelly

Daniel





-


Daniel Toffoli Ribeiro
Laboratório de Evolução e Genética Animal
Universidade Federal do Amazonas
www.evoamazon.net

tel: ++55 (92) 36474233

   
-


[[alternative HTML version deleted]]

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] Version 2.7 for Windows (PR#11399)

2008-05-08 Thread Uwe Ligges

Nuber two for today: This is *not* a bug!!!
Please read the R FAQ on what a bug is and how to report it. For 
questions, please ask on R-help *after* reading the mailinglist's 
posting guide.


[EMAIL PROTECTED] wrote:

Full_Name: Charles Man
Version: 2.7
OS: XP and Vista
Submission from: (NULL) (219.79.247.35)


After installing the latest 2.7 on both Win XP SP2 and Win Vista Business SP1,
the program cannot load. An error message shows: "Fatal Error: Unable to Restore
a Saved File". I have to fall back to version 2.6


Please check your startup environment and try to start with "--vanilla", 
for example.
I guess you have something in your Startup environemnt that does not 
work anymore.


Uwe Ligges




__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] Version 2.7 for Windows (PR#11399)

2008-05-08 Thread ripley
So the problem is 'a Saved File'.  Move it out of the way.

This is not a bug in R, and you have not provided any way to reproduce 
this.

On Wed, 7 May 2008, [EMAIL PROTECTED] wrote:

> Full_Name: Charles Man
> Version: 2.7

There is no such version.  Presumably 2.7.0.

> OS: XP and Vista
> Submission from: (NULL) (219.79.247.35)
>
>
> After installing the latest 2.7 on both Win XP SP2 and Win Vista Business SP1,
> the program cannot load. An error message shows: "Fatal Error: Unable to 
> Restore
> a Saved File". I have to fall back to version 2.6
>
> __
> R-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>

-- 
Brian D. Ripley,  [EMAIL PROTECTED]
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel:  +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UKFax:  +44 1865 272595

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] all.equal, classes, and order of arguments

2008-05-08 Thread Martin Maechler
> "hw" == hadley wickham <[EMAIL PROTECTED]>
> on Thu, 1 May 2008 20:53:10 -0500 writes:

>> a <- list()
>> b <- structure(list(), class=c("list", "a"))
>> all.equal(a, b)
hw> [1] "Attributes: < target is NULL, current is list >"
>> all.equal(b, a)
hw> [1] "Attributes: < Modes: list, NULL >"
hw> [2] "Attributes: < names for target but not for current >"
hw> [3] "Attributes: < Length mismatch: comparison on first 0 components >"

hw> which does not reveal the simple difference between a and b.  I had
hw> also expected that all.equal would (in some sense) be symmetric with
hw> respect to its arguments, but I can see that this would be very hard
hw> to guarantee in general.

hw> Hadley

You can use  'check.attributes' :

> str(all.equal)
function (target, current, ...)  
> str(all.equal.list)
function (target, current, check.attributes = TRUE, ...)  


> a <- list(); b <- structure(a, class=c("list", "a")); all.equal(a, b)
[1] "Attributes: < target is NULL, current is list >"
> all.equal(a,b, check.attributes=FALSE)
[1] TRUE
> all.equal(b,a, check.attributes=FALSE)
[1] TRUE
> 

Martin Maechler, ETH Zurich

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] [PATCH] Typo in 'unique' help page (PR#11401)

2008-05-08 Thread rpeng
---
 src/library/base/man/unique.Rd |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/library/base/man/unique.Rd b/src/library/base/man/unique.Rd
index a8397c7..4664a34 100644
--- a/src/library/base/man/unique.Rd
+++ b/src/library/base/man/unique.Rd
@@ -29,7 +29,7 @@ unique(x, incomparables = FALSE, \dots)
   \item{x}{a vector or a data frame or an array or \code{NULL}.}
   \item{incomparables}{a vector of values that cannot be compared.
 \code{FALSE} is a special value, meaning that all values can be
-compared, and nay be the only value accepted for methods other than
+compared, and may be the only value accepted for methods other than
 the default.  It will be coerced internally to the same type as
\code{x}.}
   \item{fromLast}{logical indicating if duplication should be considered
-- 
1.5.5.1.99.gf0ec4

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] [PATCH] Typo in 'unique' help page (PR#11401)

2008-05-08 Thread Duncan Murdoch

On 5/8/2008 8:10 AM, [EMAIL PROTECTED] wrote:

---
 src/library/base/man/unique.Rd |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/library/base/man/unique.Rd b/src/library/base/man/unique.Rd
index a8397c7..4664a34 100644
--- a/src/library/base/man/unique.Rd
+++ b/src/library/base/man/unique.Rd
@@ -29,7 +29,7 @@ unique(x, incomparables = FALSE, \dots)
   \item{x}{a vector or a data frame or an array or \code{NULL}.}
   \item{incomparables}{a vector of values that cannot be compared.
 \code{FALSE} is a special value, meaning that all values can be
-compared, and nay be the only value accepted for methods other than
+compared, and may be the only value accepted for methods other than
 the default.  It will be coerced internally to the same type as
\code{x}.}
   \item{fromLast}{logical indicating if duplication should be considered


Thanks, fixed.

Duncan Murdoch

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] bug on compilation (PR#11395)

2008-05-08 Thread Dirk Eddelbuettel
Daniel,

You are abusing the wrong list. You have a basic R question, or
rather,  a basic Unix/Ubuntu/Debian question.  Use r-help or even
r-sig-debian, please.

On Wed, May 07, 2008 at 07:15:32PM +0200, [EMAIL PROTECTED] wrote:
> Dear Mr.
> 
> Beginning to work on Linux.
> 
> I am trying to install R into Ubuntu Gustsy. I installed version 2.5.1 and 
> worked fine. But then I tried to upgrade by adding these lines to 
> sources.list:
> 
> deb http://cran.fiocruz.br/bin/linux/debian etch-cran/
> deb http://cran.fiocruz.br/bin/linux/ubuntu gutsy/

Either you run Ubuntu, or you run Debian, but you are very unlikely to
run both. As you say you run Ubuntu, why do think adding Debian helps?
It does not.

> I introduced the authorization keys (as recommended) and the files
> were downloaded. But then I tried to upgrade but some have problems on
> dependencies. What I did was to erase R folder installed on my
> /usr/lib 

Jeebus, why?  All you do that way is to break your system!  Let the
package manager handle removal for you.

> and went to synaptic and uninstall all the cran files. The
> idea was to start over again.
> 
> But I try to install by apt and appears:
> 
> Os pacotes a seguir têm dependências desencontradas:
>   r-base: Depende: r-base-core (>= 2.7.0-1gutsy0) mas 2.5.1-1 está para ser 
> instalado
>   r-recommended: Depende: r-base-core (>= 2.7.0-1gutsy0) mas 2.5.1-1 está 
> para ser instalado
>  Depende: r-cran-boot (>= 1.2.19) mas não vai ser instalado
>  Depende: r-cran-cluster (>= 1.9.6-2) mas não vai ser 
> instalado
>  Depende: r-cran-foreign (>= 0.7-2) mas não vai ser instalado
>  Depende: r-cran-kernsmooth (>= 2.2.14) mas não vai ser 
> instalado
>  Depende: r-cran-lattice (>= 0.10.11) mas não vai ser 
> instalado
>  Depende: r-cran-mgcv (>= 1.1.5) mas não vai ser instalado
>  Depende: r-cran-nlme (>= 3.1.52) mas não vai ser instalado
>  Depende: r-cran-rpart (>= 3.1.20) mas não vai ser instalado
>  Depende: r-cran-survival (>= 2.13.2-1) mas não vai ser 
> instalado
>  Depende: r-cran-vr (>= 7.2.8) mas não vai ser instalado
>  Depende: r-cran-codetools mas não vai ser instalado
> E: Pacotes quebrados

I cannot read your native language but it looks like a normal warning.
Instead of 'apt-get install ...' you could just have tried 'apt-get
dist-upgrade' and it should have found the new packages and upgraded
them for you. That works for many people.

> 
> I dowloaded the R-2.7.0 and tried to compile with the command ./configure. 
> But  what appeared at the end was (after a bunch of other things):
> 
> configure: error: --with-readline=yes (default) and headers/libs are not 
> available
> 
> What should I do?

$ sudo apt-get install r-base-dev

but I fear you will have other problems.  Maybe you should start at
the library or bookshop with a friendly book on Linux and Ubuntu.

Good luck,  Dirk



> Hope you can help me.
> 
> Sincerelly
> 
> Daniel
> 
> 
> 
> 
> 
> -
> 
> 
> Daniel Toffoli Ribeiro
> Laboratório de Evolução e Genética Animal
> Universidade Federal do Amazonas
> www.evoamazon.net
> 
> tel: ++55 (92) 36474233
> 
>
> -
> 
>   [[alternative HTML version deleted]]
> 
> __
> R-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel

-- 
Three out of two people have difficulties with fractions.

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] Version 2.7 for Windows (PR#11399)

2008-05-08 Thread Charles Man
  Dear Mr Ligges,
  Thank you for your reply. I'd like to apologize if you were so angry and 
offended with a new R user's misreporting of bugs. Prof. Ripley of Oxford has 
let me know that the phenomenon wasn't a bug already. Thank you for taking the 
trouble of telling me again.
  Regards,
  Charles
   
  -Original Message-
  From: Uwe Ligges [mailto:[EMAIL PROTECTED] 
  Sent: Thursday, May 08, 2008 3:55 PM
  To: [EMAIL PROTECTED]
  Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
  Subject: Re: [Rd] Version 2.7 for Windows (PR#11399)
   
  Nuber two for today: This is *not* a bug!!!
  Please read the R FAQ on what a bug is and how to report it. For 
  questions, please ask on R-help *after* reading the mailinglist's 
  posting guide.
   
  [EMAIL PROTECTED] wrote:
  > Full_Name: Charles Man
  > Version: 2.7
  > OS: XP and Vista
  > Submission from: (NULL) (219.79.247.35)
  > 
  > 
  > After installing the latest 2.7 on both Win XP SP2 and Win Vista Business 
SP1,
  > the program cannot load. An error message shows: "Fatal Error: Unable to 
Restore
  > a Saved File". I have to fall back to version 2.6
   
  Please check your startup environment and try to start with "--vanilla", 
  for example.
  I guess you have something in your Startup environemnt that does not 
  work anymore.
   
  Uwe Ligges
   
   
  > 
  > __
  > R-devel@r-project.org mailing list
  > https://stat.ethz.ch/mailman/listinfo/r-devel
  
   
-

[[alternative HTML version deleted]]

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] Linux installation

2008-05-08 Thread Michael Steinbeck-Reeves
I have just installed R under Linux and had a tricky time finding out
that I needed to install r-devel as it was not suggested by yum and does
not appear in any of the FAQs. Everything was fine until I tried to
install tseries then I was told in the compiler output that R.h was
missing. Obviously a search on Google proved fruitless and I was forced
to ask on r-help. I am now kicking myself, of course, but wouldn't it be
a useful addition to the R installation FAQs, especially for those not
acquainted with the C compiler output?

Thanks,

Michael
-- 

Michael Steinbeck-Reeves

www.steinbeck-reeves.co.uk

Work   +44(0)1256 886190
Mobile +44(0)7785 277413

Milton House
Stratfield Saye
Berkshire
RG7 2BT

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] Linux installation

2008-05-08 Thread Marc Schwartz

on 05/08/2008 10:39 AM Michael Steinbeck-Reeves wrote:

I have just installed R under Linux and had a tricky time finding out
 that I needed to install r-devel as it was not suggested by yum and
does not appear in any of the FAQs. Everything was fine until I tried
to install tseries then I was told in the compiler output that R.h
was missing. Obviously a search on Google proved fruitless and I was
forced to ask on r-help. I am now kicking myself, of course, but
wouldn't it be a useful addition to the R installation FAQs,
especially for those not acquainted with the C compiler output?

Thanks,

Michael


The need for the -devel RPMS is referenced in the R Installation and 
Administration Manual in Appendix A and Appendix C.


yum won't pick it up because the -devel RPM is not required to run R, 
which is the case BTW for most applications installed using yum on RPM 
based Linux systems.


yum won't reference 'suggested RPMs', only those actually required to 
run an application.


However, if you are going to be doing any compilation of source code 
against an RPM installed application, you will need the -devel RPMS, 
which contain the required header (.h) files, among other things. Again, 
under Linux, that is the case not only with R, but generally all 
applications installed in this fashion.


HTH,

Marc Schwartz

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] build packages with vignettes in Windows

2008-05-08 Thread Duncan Murdoch

On 4/30/2008 5:02 PM, Simon Urbanek wrote:

On Apr 30, 2008, at 4:29 PM, Duncan Murdoch wrote:

On 4/30/2008 4:01 PM, Simon Urbanek wrote:

On Apr 30, 2008, at 2:31 PM, Duncan Murdoch wrote:

On 4/30/2008 11:56 AM, Michael wrote:

On 29 Apr 2008, Duncan Murdoch wrote:

Right, you don't need to set the system path for everything,  
but  you do

need to set it in CMD (or other shell) before running Rcmd.
For Win 2K/XP/Vista, the system path can be set (through the GUI   
interface,

not sure how to do it with scripts) without restarting, for new CMD
processes started afterwards.


Sure, but the installer doesn't know how to do that.  It just  
sets  the path in the registry; it doesn't know how to give  
Explorer a  kick to get it to reload from there.  As far as I know  
there's no  documented way to do that.


FWIW the PATH setting is effective immediately (at least on 2k/  
XP ...). Any new shell you start (e.g. using Run..) will have the   
updated PATH already.


Does that happen with the Rtools installer?  I didn't know that.  I  
thought explorer only changes the PATH at startup, or when you edit  
it from the control panel.





Hmm I thought it did, but a subsequent test shows it doesn't.  
Apparently I must have triggered a change in the Control Panel so PATH  
was updated even before reboot.


Anyway, there are free tools with source that show how to send a  
broadcast message to make that change active immediately, e.g.:

http://www.codeproject.com/KB/applications/SetEnv.aspx?fid=230498&df=90&mpp=25&noise=3&sort=Position&view=Quick&select=1531752&fr=48

BTW: By testing this I found out that the Rtools installer is not as  
smart as it could be - when you run it a second time it will duplicate  
the paths.


Inno Setup supports no-reboot for PATH changes, and Rtools 2.8 now uses 
that.  So no more reboots necessary.


And the installer is a little bit smarter now than it was:  it is now 
idempotent in its PATH mods.  It's not as smart as it could be, still 
allowing lots of duplication there, but it won't add the same head twice 
in a row.


Duncan Murdoch

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel