[R-SIG-Mac].Rprofile in 1.3.1 (os 10.1)
David A Richmond
richmond@saintmarys.edu
Fri, 9 Nov 2001 17:19:53 -0500 (EST)
Actually, I did notice the line break issue when I copied the files (in
osX all the line breaks from os9 appeared as ^M) so I rewrote
".Rprofile" from scratch to read:
.First <- function() {
library(sna)
}
(where sna is indeed a package which resides in the "library" folder.)
It still doesn't work. still getting:
Error: syntax error: evaluating expression 0
the base package works, and if I type "library(sna)" at the prompt it
loads the library and I can use the sna functions fine.
dave
On Fri, 9 Nov 2001, Stefano Iacus wrote:
> apparently nothing wrong David,
>
> you probably also converted line-endings that are different from OSX and
> old-MacOS. Can you check in some way, for example by using "less
> filename" from a shell ?
>
> The R-devel version (and so the 1.4 release) should be ok with both
> line-endings.
>
> One question: does the base package work ?
>
> There is a problem with stuffit expander that uses to convert
> line-endings differently if you are using the MacOS or the MacOS X
> version.
>
>
> Stefano
>
> On Venerd́, novembre 9, 2001, at 12:04 , David A Richmond wrote:
>
> > Hi,
> > I recently switched to OS 10.1, and R1.3.1, from 8.6/1.3.0, where
> > I had a .Rprofile file with a .First function:
> >
> > ..First <- function() {
> > library(sna)
> > etc...
> > }
> >
> > This worked in R1.3.0 on 8.6. Upon downloading 1.3.1 into osX I moved
> > ..Rprofile to the new R folder, but when I run it I get the following
> > error
> > on startup:
> > Error: syntax error: evaluating expression 0
> >
> > it doesn't matter what's in the function, if I comment out everything
> > inside .First I still get the error
> >
> > what am I doing wrong?
> >
> > daver
> >
> >
>
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|David Richmond It works on a |
+ Dept. of Sociology complex scientific +
|Saint Mary's College principle, known as |
+ Notre Dame, IN 46556 "pot luck." +
|219-284-4517 - The Doctor |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+