Hi all, I have saved my workplace in a .RData format. However if I want to open that, I need to use following code : load("C:\\......") Here my question is why "\\". In all the time generally we use "/" like when we use read.delim() function etc. Is there any possibility to have some consistency there? Is there any other way to re-open the .RData file? Thanks, -- View this message in context: http://n4.nabble.com/Why-instead-of-simple-to-specify-a-file-path-tp1677973p1677973.html Sent from the R help mailing list archive at Nabble.com.
Barry Rowlingson
2010-Mar-22 17:51 UTC
[R] Why "\\" instead of simple "/" to specify a file path
On Mon, Mar 22, 2010 at 5:22 PM, Bogaso <bogaso.christofer at gmail.com> wrote:> > Hi all, > > I have saved my workplace in a .RData format. However if I want to open > that, I need to use following code : > > load("C:\\......") > > Here my question is why "\\". In all the time generally we use "/" like when > we use read.delim() function etc. Is there any possibility to have some > consistency there? Is there any other way to re-open the .RData file?Single forward slash works for me (I use H: drive here, our 'home' network folder on our system): > x=1 > y=2 > save.image(file="H:/test.rdata") > ls() [1] "x" "y" > rm(x) > rm(y) > load("h:/test.rdata") > x [1] 1 How does it not work for you? Error message and R version please! Barry
David Winsemius
2010-Mar-22 18:51 UTC
[R] Why "\\" instead of simple "/" to specify a file path
On Mar 22, 2010, at 1:22 PM, Bogaso wrote:> > Hi all, > > I have saved my workplace in a .RData format. However if I want to > open > that, I need to use following code : > > load("C:\\......") > > Here my question is why "\\". In all the time generally we use "/" > like when > we use read.delim() function etc. Is there any possibility to have > some > consistency there?Depends what you mean by consistency. The same rule applies on all current supported OS platforms. Doubling the back-slashes is needed because "\" is an "escape character".> Is there any other way to re-open the .RData file?If your OS supports it you may be able to use drag-drop with file icons or you can use file.choose() -- David.> > Thanks, > -- > View this message in context: http://n4.nabble.com/Why-instead-of-simple-to-specify-a-file-path-tp1677973p1677973.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help at r-project.org 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.
Possibly Parallel Threads
- Fw: Re: Why "\\" instead of simple "/" to specify a file path [modified]
- load() failed to load .Rdata file in AWS-Ububtu
- load() failed to load .Rdata file in AWS-Ububtu
- load() failed to load .Rdata file in AWS-Ububtu
- load() failed to load .Rdata file in AWS-Ububtu