Skip to content

Help needed! Error in setwd(newdir) : cannot change working directory

8 messages · ying chen, R. Michael Weylandt, Ivette +3 more

#
This is a mess -- please resend in plain text.

Also, there are not, to my knowledge, packages (not libraries) called
"A", "B", or "C" so your script doesn't even begin to look
reproducible were it legible.

Do you have read/write access to the directories in question?

Michael
On Sat, Feb 25, 2012 at 11:25 PM, ying chen <ying_chen at live.com> wrote:
#
Stop it with the "fake" code if you want help. In keeping with the posting guide, make one reproducible example that exhibits a real problem. For what it is worth, I don't have difficulty with setwd().
---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil at 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.
ying chen <ying_chen at live.com> wrote:

            
#
On Sun, Feb 26, 2012 at 04:12:03PM -0500, ying chen wrote:
Print the variable "newdir" to see, whether it contains, what you expect.
Loading libraries in this way does not depend on the working directory.
Try print(newdir) before setwd(newdir).

Petr Savicky.