[R] Problems with Vista, R 2.5.0 and function save
Stefan Grosse
singularitaet at gmx.net
Wed Jun 13 11:45:34 CEST 2007
Hi Maja,
if you are working on your own computer an alternative could be to
install R in your user directory: c:\Users\your_loginname_\R or
c:\Users\your_loginname_\Documents\R I also had a problem with the
writing permissions when I tried updating R packages.
Btw. when I work with files I set the path directly (since I have
several different paths) so this is also a work around (
save(x,y,file="c:/Users/Maja/Documents/masterfile.Rda") just note that
the windows backslash has been replaced).
Stefan
-------- Original Message --------
Subject: Re:[R] Problems with Vista, R 2.5.0 and function save
From: Prof Brian Ripley <ripley at stats.ox.ac.uk>
To: Maja Schröter <maja.schroeter at gmx.de>
Date: 12.06.2007 13:48
> So you are running R somewhere in your file system where you do not
> have permission to write.
>
> Did you create a shortcut with a working directory set as the rw-FAQ
> advised you to?
>
> On Tue, 12 Jun 2007, "Maja Schröter" wrote:
>
>> Hi everyone,
>>
>> I want to make use of the save function but it did not work.
>>
>> I'm using vista and R 2.5.0, winzip is installed too.
>>
>> Here's the code (from example ?save):
>>
>> > x <- runif(20)
>> > y <- list(a = 1, b = TRUE, c = "oops")
>> > save(x, y, file = "xy.Rdata")
>> Fehler in gzfile(file, "wb") : kann Verbindung nicht öffnen
>> Zusätzlich: Warning message:
>> kann komprimierte Datei 'xy.Rdata' nicht öffnen
>>
>> Thank you so much for your help.
>>
>> Background: I want to crate a variable "masterfile" that I can start
>> with data(masterfile) or attach(masterfile).
>>
>> I.g.
>>
>> Town<-c("London","Miami","Rio","Lansing")
>> Pollution<-c("34","32","50","17")
>> masterfile<-data.frame(Town,Pollution)
>> save(masterfile,file="masterfile.Rda")
>>
>>
>> Kindly regards,
>>
>> Maja Schröter
>>
>
> ------------------------------------------------------------------------
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
> ------------------------------------------------------------------------
>
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.472 / Virus Database: 269.8.15/847 - Release Date: 12.06.2007 21:42
>
More information about the R-help
mailing list