Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installation directory of R and the usage of .libPath()

Tags:

r

If I want to know which directory is R installed, which R command is able to do that? The .libPath() function gets/sets where packages are found. How does this differ with the installation directory of R?

like image 925
user297850 Avatar asked Jul 02 '12 18:07

user297850


1 Answers

You're looking for R.home(). See ?R.home for other uses, e.g. R.home("bin").

like image 121
Joshua Ulrich Avatar answered Nov 09 '22 05:11

Joshua Ulrich