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

Helmut Kudrnovsky hellik at web.de
Fri Nov 18 05:11:39 PST 2016


Roger Bivand wrote
> Right. Both R and Python seem to use %USERPROFILE% which is predictably 
> present in modern Windows. In winGRASS this is used to set %HOME%, which R 
> uses instead of %USERPROFILE%. R believes a set %HOME%, leading to the 
> difficulties.

a list of available windows variables:

http://ss64.com/nt/syntax-variables.html

USERPROFILE:

%SystemDrive%\Users\{username}
This is equivalent to the $HOME environment variable in Unix/Linux 


Roger Bivand wrote
> Could the winGRASS startup set R_LIBS_USER itself, and free it on exit? If 
> the user had multiple /x.y library directories, the advice would be to set 
> manually in the control panel, if one, use that?

theoretically it would be possible to set R_LIBS_USER during installation; a
new logic has to be added to the nsis installer script.

the other way around may be to set %HOME% in winGRASS as
%USERPROFILE%\Documents.

both changes should be discussed on the dev ML.

before such changes are implemented, the workaround to manage this issue
manually via the control panel should go to the wiki.

Anna, any suggestions?




-----
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-tp5295771p5296469.html
Sent from the Grass - Stats mailing list archive at Nabble.com.


More information about the grass-stats mailing list