[GRASS-stats] rgrass7 is not loading

Helmut Kudrnovsky hellik at web.de
Mon Oct 3 13:11:01 PDT 2016


>The OP replied off-list 20/9 that:
>
>"I'm working on win7 home professional.
>
>It's the latest r version (3.3.0) and native grass 7.0.4.
>
>The rgrass7 package is the latest, downloaded yesterday. In  the single r
session it works and reports that grass is not running.
>
>But if i start it in the grass session i get this error.
>
>It seems that there are any old grass r bindings which uses the namespaces
needed from the package.
>
>Until yesterday it worked fine...
>
>I searched for this issue, founded similar reports, but no solutions. Am"
>
>Using Windows 7 Enterprise and R 3.3.0 and R 3.3.1, GRASS 7.0.4, and
rgrass7 0.1-7 and 0.1-8, I see no issues and cannot reproduce it. Could
other users of Windows (I am not a Windows user) please report whether this
loading error is specific to the OP (and another person who contacted me
offlist). Do not write to me offlist, only the list collectively is likely
to resolve this. 

tested here on a win 10 64-bit box, and osgeo4w-winGRASS7.0.5; following
steps for testing:

- start a osgeo4w-winGRASS7.0.5-session

- adding R to %PATH%:

C:\>set PATH=%PATH%;"C:\Program Files\R\R-3.3.1\bin"

C:\>echo %PATH%
C:\OSGEO4~1\apps\grass\grass-7.0.5\lib;C:\OSGEO4~1\apps\grass\grass-7.0.5\bin;C:\Users\hkmyr\AppData\Roaming\GRASS7\addons\bin;C:\OSGEO4~1\apps\Python27\Scripts;C:\OSGEO4~1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\WBem;C:\OSGEO4~1\apps\msys\bin;"C:\Program
Files\R\R-3.3.1\bin"

- following library versions are installed:

install.packages("sp") # sp_1.2-3
install.packages("rgdal") # rgdal_1.1-10
install.packages("rgrass7") # rgrass7_0.1-8

- then typing R in the osgeo4w-windows console:

C:\>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.

Beim Start - Warnmeldungen:
1: Setting LC_CTYPE=de_AT.cp1252 failed
2: Setting LC_COLLATE=de_AT.cp1252 failed
3: Setting LC_TIME=de_AT.cp1252 failed
4: Setting LC_MONETARY=de_AT.cp1252 failed
>

- and loading rgrass7:

> library("rgrass7")
Lade n├Âtiges Paket: sp
Lade n├Âtiges Paket: XML
GRASS GIS interface loaded with GRASS version: GRASS 7.0.5 (2016)
and location: nc_spm_08_grass7

beside some locale setting issues,  library("rgrass7") works here on my
side.

I've tested it on a few 32bit/64bit win7/win8/win10-boxes, no issues so far
here in testing on my side.

taken from the mentioned error report:
> Error : .onAttach in attachNamespace() f├╝r 'rgrass7' fehlgeschlagen,
> Details:
>  Aufruf: if (class(t0) != "try-error" && is.character(t0) && nchar(t0) >
>  Fehler: Fehlender Wert, wo TRUE/FALSE n├Âtig ist 

what can be the reason of such an attachNamespace() issue?

two installed rgrass7 packages (with and without admin rights)?
locale issue?
path issue?

anything else to test?



-----
best regards
Helmut
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/rgrass7-is-not-loading-tp5286725p5289107.html
Sent from the Grass - Stats mailing list archive at Nabble.com.


More information about the grass-stats mailing list