[GRASS-stats] rgrass7 is not loading

Helmut Kudrnovsky hellik at web.de
Tue Oct 4 11:19:54 PDT 2016


>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.

[snip]

> 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 

looking at the error, it seems to come from:

https://r-forge.r-project.org/scm/viewvc.php/pkg/rgrass7/R/xml1.R?view=markup&root=spgrass

[...]
if (nchar(Sys.getenv("GRASS_ADDON_BASE")) > 0) {
                t0 <- try(sub(".bat", "", 
                   list.files(paste(Sys.getenv("GRASS_ADDON_BASE"),
                       "bin", sep="/"), pattern=".bat$")), silent=TRUE)
                if (class(t0) != "try-error" && is.character(t0) &&
                   nchar(t0) > 0)
                   WN_bat <- c(WN_bat, t0)
[...]

could it be that (some) addons raises this issue?








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


More information about the grass-stats mailing list