I'm not very sure if we can still connect GRASS with R. I was trying with my GRASS 7.8 and R 3.6.2 in both directions suggested in R statistics wiki.
I have installed and loaded rgrass7
, but have difficulty running functions. Here is an example of my setting the GRASS environment:
initGRASS(gisBase = "C:/Program Files/GRASS GIS 7.8",
home = getwd(),
override = TRUE)
Error : XML content does not seem to be XML: ''
In addition: Warning message:
In system(cmd0, intern = TRUE) :
running command 'g.proj.exe --interface-description' had status 5
Error in parseGRASS(cmd, legacyExec = legacyExec) : g.proj not parsed
I have the same problem starting R in GRASS either. I can type in rstudio
in the GRASS command line to initiate R, but when I was trying to run any functions (e.g. execGRASS
), I got the exact same error information.
Has anyone had the same problem before? I'm not sure what the error message means.