R packages/libraries [🇷 for BE/BA]
Dear BE-proff, dear Helmut,
That all is very mysterious to me
!
I always got packages including all dependencies. And they worked out of the box. How do you install packages? Via menu within Rgui.exe? Or via
After Goggling a while I think this link Number 7 may be a hint to the reason:
The user which you use to install packages must have write permissions to the location where the package will be saved on your drive(s). Usually this is "c:\Program Files\R\R-3.2.1\library\" if you haven't set it to other. And 'ordinary' users don't have write permissions there.
You may query the path by
Then check if the directories
BTW: It may be a good idea to have the packages not in base installation separated. I have a directory
.
To work with this setting you have to create under
But beware also your write permissions in that location.
Hope this helps.
❝ It it getting really interesting
❝
❝ I have installed missed mvtnorm package and now R says:
❝
❝ Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : object 'vI' not found
❝ Error: package or namespace load failed for ‘PowerTOST’
That all is very mysterious to me

I always got packages including all dependencies. And they worked out of the box. How do you install packages? Via menu within Rgui.exe? Or via
install.packages()
? Any errors during installation?After Goggling a while I think this link Number 7 may be a hint to the reason:
The user which you use to install packages must have write permissions to the location where the package will be saved on your drive(s). Usually this is "c:\Program Files\R\R-3.2.1\library\" if you haven't set it to other. And 'ordinary' users don't have write permissions there.
You may query the path by
.libPaths()
Then check if the directories
PowerTOST
and/or mvtnorm
look like the other packages of the base install.BTW: It may be a good idea to have the packages not in base installation separated. I have a directory
"c:\Program Files\R\library\"
for that 
To work with this setting you have to create under
"c:\Program Files\R\R-3.2.1\etc\"
a file named Renviron.site
with the contentR_LIBS="C:/Program Files/R/library"
But beware also your write permissions in that location.
Hope this helps.
—
Regards,
Detlew
Regards,
Detlew
Complete thread:
- Comparison of normality tests BE-proff 2015-08-10 09:07 [🇷 for BE/BA]
- To test or not to test… Helmut 2015-08-11 01:21
- To test or not to test… BE-proff 2015-08-11 10:06
- R packages/libraries Helmut 2015-08-11 12:07
- R packages/libraries BE-proff 2015-08-11 12:29
- R packages/libraries Helmut 2015-08-11 13:18
- R packages/libraries BE-proff 2015-08-11 22:15
- R packages/libraries Helmut 2015-08-11 22:28
- R packages/libraries BE-proff 2015-08-11 22:39
- R packages/librariesd_labes 2015-08-12 09:07
- R packages/libraries BE-proff 2015-08-12 10:36
- R packages/libraries install d_labes 2015-08-12 11:13
- install package(s) from a local zip file? yjlee168 2015-08-12 11:43
- install package(s) from a local zip file? BE-proff 2015-08-12 12:06
- install package(s) d_labes 2015-08-12 13:02
- Packages attached by default Helmut 2015-08-12 13:13
- install package(s) yjlee168 2015-08-12 14:58
- suggested package(s) d_labes 2015-08-12 16:33
- R packages/libraries install BE-proff 2015-08-12 11:57
- I don't believe!!! BE-proff 2015-08-12 18:26
- Congratulation d_labes 2015-08-13 08:36
- I don't believe!!! BE-proff 2015-08-12 18:26
- install package(s) from a local zip file? yjlee168 2015-08-12 11:43
- R packages/libraries install d_labes 2015-08-12 11:13
- R packages/libraries BE-proff 2015-08-12 10:36
- R packages/librariesd_labes 2015-08-12 09:07
- R packages/libraries BE-proff 2015-08-11 22:39
- R packages/libraries Helmut 2015-08-11 22:28
- R packages/libraries BE-proff 2015-08-11 22:15
- R packages/libraries Helmut 2015-08-11 13:18
- R packages/libraries BE-proff 2015-08-11 12:29
- R packages/libraries Helmut 2015-08-11 12:07
- To test or not to test… BE-proff 2015-08-11 10:06
- To test or not to test… Helmut 2015-08-11 01:21