You did not post to the list - did you subscribe to it properly?

If you need to do this, use Rgui not Rstudio, and GRASS itself, not inside QGIS. Both of these will mess up paths, put things in different places, and make help impossible.

On Tue, 7 Feb 2017, Marie Delalay wrote:

Hi Roger,

Nobody answers in the grass-stats list. Where can I get help on this?

Thanks,
Marie

On 1 February 2017 at 13:49, Marie Delalay <mariesdela...@gmail.com> wrote:

Hi,

I am trying to the use the package rgrass7, however I have not managed
running any functions of the package. I work with RStudio and have
functional knowledge of R.

First, I understand I need to set the location of GRASS program, so I use
initGRASS with argument override=TRUE



 initGRASS("C:/Program Files/QGIS 2.14/apps/grass/grass-7.2.0", tempdir(), 
override=T)Error in if (!compatible) { : argument is of length zeroIn addition: There were 
11 warnings (use warnings() to see them)> warnings()Warning messages:
1: running command 'g.dirseps.exe -g "junk"' had status 309
2: running command 'g.dirseps.exe -g 
"C:\Users\mdela\AppData\Local\Temp\Rtmp4mEpSj"' had status 309
3: running command 'g.gisenv.exe "set=GISDBASE= NA"' had status 309
4: In dir.create(loc_path) :
  cannot create dir 'NA\file27405cb525a6', reason 'No such file or directory'
5: In dir.create(paste(loc_path, "PERMANENT", sep = "/")) :
  cannot create dir 'NA\file27405cb525a6\PERMANENT', reason 'No such file or 
directory'
6: In dir.create(paste(loc_path, mapset, sep = "/")) :
  cannot create dir 'NA\file27405cb525a6\file2740464e51d3', reason 'No such 
file or directory'
7: running command 'g.gisenv.exe "set=GISDBASE=NA"' had status 309
8: running command 'g.gisenv.exe "set=LOCATION_NAME=file27405cb525a6"' had 
status 309
9: running command 'g.gisenv.exe "set=MAPSET=file2740464e51d3"' had status 309
10: running command 'g.gisenv.exe "set=GRASS_GUI=text"' had status 309
11: running command 'g.version.exe' had status 309


Plus, a message box appears titled "GDIRSE~1.EXE": "The program can't
start because iconv.dll is missing from your computer. Try reinstalling the
program to fix this problem".

Second, I realise that R knows that the location of GRASS which makes me
believe that I might not need to use initGRASS after all.

initGRASS("C:/Program Files/QGIS 2.14/apps/grass/grass-7.2.0", tempdir())Error in 
initGRASS("C:/Program Files/QGIS 2.14/apps/grass/grass-7.2.0",  :
  A GRASS location is already in use; to override, set override=TRUE


Third, the function gmeta does not work, and here, I am at a loss to know
why.

gmeta(ignore.stderr = FALSE)Error in if (get("SYS", envir = .GRASS_CACHE) == "WinNat" 
&& nchar(WN_bat) ==  :
  missing value where TRUE/FALSE needed



Can you help me with having the right set up to use rgrass7 ?

Thanks and regards
Marie Delalay



--
Roger Bivand
Department of Economics, Norwegian School of Economics,
Helleveien 30, N-5045 Bergen, Norway.
voice: +47 55 95 93 55; e-mail: roger.biv...@nhh.no
http://orcid.org/0000-0003-2392-6140
https://scholar.google.no/citations?user=AWeghB0AAAAJ&hl=en
http://depsy.org/person/444584
_______________________________________________
grass-stats mailing list
grass-stats@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-stats

Reply via email to