[R-SIG-Mac] Command lines for R on Macintosh

peter dalgaard pdalgd at gmail.com
Tue May 31 10:13:01 CEST 2016


I don't see a problem with that:

Peters-iMac:~ pd$ r-release-branch/BUILD-dist/bin/R

R version 3.3.0 Patched (2016-05-26 r70684) -- "Supposedly Educational"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin13.4.0/x86_64 (64-bit)
[....]
> getwd()
[1] "/Users/pd"
> setwd("/Users/pd/tmp")
> getwd()
[1] "/Users/pd/tmp"

Suspecting a permission issue on your turf: Do you have nonstandard umask setting, can the owner of the R process (which you start how?) read your files, etc.

-pd 

> On 26 May 2016, at 11:21 , Jeffrey Agyapong <jephrey14 at gmail.com> wrote:
> 
> I recently installed R.3.3.0 on mac and I seem to have problems with the command lines. The command lines for windows seems to be different from that for Macintosh. For example I tried the following commands and didn’t work;
>> getwd()
> [1] "/Users/Dimples"
>> setwd("/Users/Dimples/Jeff")
> Error in setwd("/Users/Dimples/Jeff") : cannot change working directory
>> setwd("/Users/Dimples/Desktop/R/Jeff")
> Error in setwd("/Users/Dimples/Desktop/R/Jeff") : 
>  cannot change working directory
>> setwd("/Users/Dimples/JeffR")
> Error in setwd("/Users/Dimples/JeffR") : cannot change working directory
>> setwd("/Untitled/Users/Dimples/Desktop/R/JeffRR")
> Error in setwd("/Untitled/Users/Dimples/Desktop/R/JeffRR") : 
>  cannot change working directory
>> setwd("/Users/Dimples/Desktop/R/JeffRR")
> Error in setwd("/Users/Dimples/Desktop/R/JeffRR") : 
>  cannot change working directory
>> setwd("/Users/Dimples/Desktop/JeffRR")
> Error in setwd("/Users/Dimples/Desktop/JeffRR") : 
>  cannot change working directory
>> setwd("/Users/Dimples/Desktop/JeffRR")
> Error in setwd("/Users/Dimples/Desktop/JeffRR") : 
>  cannot change working directory
> Can I receive any help with which app I can use to run CRAN R on macintosh or how to run R app on macintosh.
> 
> Best regards,
> Jeff
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac

-- 
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Office: A 4.23
Email: pd.mes at cbs.dk  Priv: PDalgd at gmail.com



More information about the R-SIG-Mac mailing list