[GRASS-stats] GRASS can't find R packages from personal library on Windows

Helmut Kudrnovsky hellik at web.de
Thu Nov 17 02:49:12 PST 2016


Helmut Kudrnovsky wrote
> 
> Helmut Kudrnovsky wrote
>> now tested by intalling some libraries into my personal library.
>> 
>> outside a winGRASS7.2.svn session
>> 
>>> .libPaths()
>> [1] "C:/Users/test/Documents/R/win-library/3.3"
>> [2] "C:/Program Files/R/R-3.3.1/library"        
>>> 
>> 
>> inside a winGRASS7.2.svn session
>> 
>>> .libPaths()
>> [1] "C:/Program Files/R/R-3.3.1/library"
>> 
>> there is a diffference between inside and outside a winGRASS7.2.svn
>> session
> now tested with standalone winGRASS7.0.5; same behaviour; inside a
> winGRASS-session the personal library seems not to be found.
> 
> any idea?

now changing into the locally GRASS source code where R-batch files lives
(D:\software_source\grass_trunk\mswindows\external\rbatch) and start R form
there (same mechanism as implemented in the standalone winGRASS):

D:\software_source\grass_trunk\mswindows\external\rbatch>R

R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)

R ist freie Software und kommt OHNE JEGLICHE GARANTIE.
Sie sind eingeladen, es unter bestimmten Bedingungen weiter zu verbreiten.
Tippen Sie 'license()' or 'licence()' für Details dazu.

R ist ein Gemeinschaftsprojekt mit vielen Beitragenden.
Tippen Sie 'contributors()' für mehr Information und 'citation()',
um zu erfahren, wie R oder R packages in Publikationen zitiert werden
können.

Tippen Sie 'demo()' für einige Demos, 'help()' für on-line Hilfe, oder
'help.start()' für eine HTML Browserschnittstelle zur Hilfe.
Tippen Sie 'q()', um R zu verlassen.

> .libPaths()
[1] "C:/Users/test/Documents/R/win-library/3.3"
[2] "C:/Program Files/R/R-3.3.1/library"
>

here R finds both, the standard and the personal library.

so it seems winGRASS seems to hide the path to the personal library.




-----
best regards
Helmut
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GRASS-can-t-find-R-packages-from-personal-library-on-Windows-tp5295771p5296225.html
Sent from the Grass - Stats mailing list archive at Nabble.com.


More information about the grass-stats mailing list