Greg Lyukshin
2011-Aug-31 06:33 UTC
[R] Error in setwd(dir) : cannot change working directory
Hello, I got some of the R source code and not being able to Run it in
RStudio.
I get the error:
Error in setwd("dir") :
cannot change working directory
I have gone through forums but nothing seemed relevant to my issue.
What bugs me the most is the ("dir") that the error shows, is of
those who
wrote the source code and not mine(it still sees the directory of their
computer, even though, I have changed all the directories).
When I write getwd(), it dispalys my "dir".
Does anyone have any ideas on what's going on here?
Thank you
--
Greg Lyukshin
[[alternative HTML version deleted]]
Jeff Newmiller
2011-Aug-31 06:40 UTC
[R] Error in setwd(dir) : cannot change working directory
Unless you have a subdirectory called "dir" below the directory
returned by getwd(), the command you gave would be expected to fail. Perhaps you
should use an absolute directory specification?
---------------------------------------------------------------------------
Jeff Newmiller The ..... ..... Go Live...
DCN:<jdnewmil@dcn.davis.ca.us> Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/Batteries O.O#. #.O#. with
/Software/Embedded Controllers) .OO#. .OO#. rocks...1k
---------------------------------------------------------------------------
Sent from my phone. Please excuse my brevity.
Greg Lyukshin <grigoriy.lyukshin@gmail.com> wrote:
Hello, I got some of the R source code and not being able to Run it in
RStudio.
I get the error:
Error in setwd("dir") :
cannot change working directory
I have gone through forums but nothing seemed relevant to my issue.
What bugs me the most is the ("dir") that the error shows, is of those
who
wrote the source code and not mine(it still sees the directory of their
computer, even though, I have changed all the directories).
When I write getwd(), it dispalys my "dir".
Does anyone have any ideas on what's going on here?
Thank you
--
Greg Lyukshin
[[alternative HTML version deleted]]
_____________________________________________
R-help@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.
[[alternative HTML version deleted]]