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?
You're looking for R.home()
. See ?R.home
for other uses, e.g. R.home("bin")
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With