r-help Forum

 

My employer has not yet approved R/RStudio but has allowed me to run
R/RStudio from profile.  I need to add RTools but not sure I can run RTools
from the same location.  

So I unzipped Rtools and added the folder to my profile location containing
R and RStudio and then modified my Rprofile adding a third path to the
RTools folder as follows:

 

# my custom stuff

myPaths <- c(.libPaths(), "\\\\gold/home/ndw003/reichmjs/MyDocs/R/rtools40
<file://gold/home/ndw003/reichmjs/MyDocs/R/rtools40> ")

.libPaths(myPaths)

 

Not sure if this is the best method but seems to work;

 

> .libPaths()

[1] "\\\\gold/home/ndw003/reichmjs/MyDocs/R/win-library/4.0
<file://gold/home/ndw003/reichmjs/MyDocs/R/win-library/4.0> "

[2] "\\\\gold/home/ndw003/reichmjs/MyDocs/R/R-40.3/library
<file://gold/home/ndw003/reichmjs/MyDocs/R/R-40.3/library> "

[3] "\\\\gold/home/ndw003/reichmjs/MyDocs/R/rtools40
<file://gold/home/ndw003/reichmjs/MyDocs/R/rtools40> "  

 

except when I run 

 

> has_rtools()

WARNING: Rtools is required to build R packages, but is not currently
installed.

 

Please download and install Rtools 4.0 from
https://cran.r-project.org/bin/windows/Rtools/.

 

I am assuming R isn't seeing Rtools

 

So can I run Rtools from the same profile location as R and RStudio? IF so
what do I need to do?

 

Jeff Reichman

 


        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.

Reply via email to