[GRASS-dev] [GRASS GIS] #3688: impossible to start grass from Rstudio in Windows

GRASS GIS trac at osgeo.org
Mon Oct 29 05:51:35 PDT 2018


#3688: impossible to start grass from Rstudio in Windows
------------------------+-------------------------
 Reporter:  veroandreo  |      Owner:  grass-dev@…
     Type:  defect      |     Status:  new
 Priority:  normal      |  Milestone:  7.4.3
Component:  Default     |    Version:  7.4.2
 Keywords:              |        CPU:  Unspecified
 Platform:  MSWindows   |
------------------------+-------------------------
 Currently it is impossible to start GRASS from R in Windows (I tested with
 GRASS installed from OSGeo4W). It worked perfectly a month ago or so when
 Roger Bivand fixed some issues. Apparently it is due to an incompatibility
 in dependencies after GRASS was compiled against new GDAL and PROJ.

 Here's the R command (paths must be adapted):

 {{{
 initGRASS(gisBase = "C:/OSGeo4W64/apps/grass/grass-7.4.2RC2",
           gisDbase = "C:/Users/RETA/Documents/grassdata",
           location = "nc_spm_08_grass7",
           mapset = "user1",
           SG = "elevation")
 }}}

 The pop-up error is a missing iconv.dll. All locales were in Spanish as
 well as the laptop I tested on. After many attempts to try to close the
 pop-up error, we got the following in the Rstudio console:

 {{{
 Error in if (!compatible) { : argument is of length zero
 In addition: Warning messages:
 1: In system(paste("g.dirseps.exe -g", shQuote(Sys.getenv("GISRC"))),  :
   running command 'g.dirseps.exe -g "junk"' had status 309
 2: In system(paste("g.dirseps.exe -g", shQuote(gisDbase)), intern = TRUE)
 :
   running command 'g.dirseps.exe -g "C:/Users/RETA/Documents/grassdata"'
 had status 309
 3: In dir.create(loc_path) :
   cannot create dir 'NA\nc_spm_08_grass7', reason 'No such file or
 directory'
 4: In dir.create(paste(loc_path, "PERMANENT", sep = "/")) :
   cannot create dir 'NA\nc_spm_08_grass7\PERMANENT', reason 'No such file
 or directory'
 5: In dir.create(paste(loc_path, mapset, sep = "/")) :
   cannot create dir 'NA\nc_spm_08_grass7\user1', reason 'No such file or
 directory'
 6: In system(paste("g.version", get("addEXE", envir = .GRASS_CACHE),  :
   running command 'g.version.exe' had status 309
 }}}

 See mailing list http://osgeo-org.1560.x6.nabble.com/error-when-trying-to-
 start-GRASS-from-Rstudio-in-Windows-td5383381.html for further details.

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/3688>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list