Examples for 'base::R.home'


Return the R Home Directory

Aliases: R.home R_HOME

Keywords: utilities

### ** Examples

## These result quite platform dependently :
rbind(home = R.home(),
      bin  = R.home("bin")) # often a sub directory of 'home'
     [,1]                  
home "/usr/local/R/4.2"    
bin  "/usr/local/R/4.2/bin"
list.files(R.home("bin"))
 [1] "BATCH"         "build"         "check"         "COMPILE"      
 [5] "config"        "exec"          "INSTALL"       "javareconf"   
 [9] "libtool"       "LINK"          "mkinstalldirs" "pager"        
[13] "R"             "Rcmd"          "Rd2pdf"        "Rdconv"       
[17] "Rdiff"         "REMOVE"        "Rprof"         "Rscript"      
[21] "rtags"         "SHLIB"         "Stangle"       "Sweave"       

[Package base version 4.2.3 Index]