ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sat, 25 Jul 2015 08:05:26 -0500setwd() function in R does not work in Sagehttp://ask.sagemath.org/question/27216/setwd-function-in-r-does-not-work-in-sage/Hello, I am trying to use setwd() for R in the sage notebook to set the current working directory. But it does not seem to work. I get the following
setwd("/home/foo/Code/")
getwd()
[1] "/tmp/tmpR8Ukt0"
So as shown, the setwd() command has no effect. Any suggestions?
Sat, 27 Jun 2015 18:02:11 -0500http://ask.sagemath.org/question/27216/setwd-function-in-r-does-not-work-in-sage/Comment by NahsiN for <p>Hello, I am trying to use setwd() for R in the sage notebook to set the current working directory. But it does not seem to work. I get the following</p>
<pre><code>setwd("/home/foo/Code/")
getwd()
[1] "/tmp/tmpR8Ukt0"
</code></pre>
<p>So as shown, the setwd() command has no effect. Any suggestions?</p>
http://ask.sagemath.org/question/27216/setwd-function-in-r-does-not-work-in-sage/?comment=28016#post-id-28016No they were in separate cells. Putting the two commands in one cell works. Thanks for the clarification. Now it makes sense.Thu, 16 Jul 2015 17:00:28 -0500http://ask.sagemath.org/question/27216/setwd-function-in-r-does-not-work-in-sage/?comment=28016#post-id-28016Comment by kcrisman for <p>Hello, I am trying to use setwd() for R in the sage notebook to set the current working directory. But it does not seem to work. I get the following</p>
<pre><code>setwd("/home/foo/Code/")
getwd()
[1] "/tmp/tmpR8Ukt0"
</code></pre>
<p>So as shown, the setwd() command has no effect. Any suggestions?</p>
http://ask.sagemath.org/question/27216/setwd-function-in-r-does-not-work-in-sage/?comment=27219#post-id-27219Is it all in the same cell? That's the only way I could imagine this working, as sagenb (by design) uses temp directories to actually evaluate each cell.Sat, 27 Jun 2015 22:30:49 -0500http://ask.sagemath.org/question/27216/setwd-function-in-r-does-not-work-in-sage/?comment=27219#post-id-27219Answer by kcrisman for <p>Hello, I am trying to use setwd() for R in the sage notebook to set the current working directory. But it does not seem to work. I get the following</p>
<pre><code>setwd("/home/foo/Code/")
getwd()
[1] "/tmp/tmpR8Ukt0"
</code></pre>
<p>So as shown, the setwd() command has no effect. Any suggestions?</p>
http://ask.sagemath.org/question/27216/setwd-function-in-r-does-not-work-in-sage/?answer=28699#post-id-28699See comments: this would only work in the same cell. Sat, 25 Jul 2015 08:05:26 -0500http://ask.sagemath.org/question/27216/setwd-function-in-r-does-not-work-in-sage/?answer=28699#post-id-28699