[R-sig-Geo] error when trying to use RStudio within GRASS

Sarah Goslee @@r@h@go@lee @ending from gm@il@com
Sun Dec 23 14:06:22 CET 2018


Hi Carlos,

"This error does not show when using R instead of RStudio."

Then you probably need to use RStudio help channels. You *might* get lucky
here, but this is an R help list, not RStudio help.

Sarah

On Sun, Dec 23, 2018 at 7:44 AM Carlos Rodríguez <arrowtado using gmail.com>
wrote:

> Hi guys,
>
> I have the following error when using Rstudio within GRASS 7.2.2
> (stand-alone version) in Windows 10:
>
>
>
> Location Spearfish_60
>
> > points <- readVECT("archsites")
>
> Error in if (get("SYS", envir = .GRASS_CACHE) == "WinNat" && nchar(WN_bat)
> ==  :
>
>   missing value where TRUE/FALSE needed
>
>
> > traceback()
>
> 7: parseGRASS(cmd, legacyExec = legacyExec)
>
> 6: doGRASS(cmd, flags = flags, ..., parameters = parameters, echoCmd =
> echoCmd,
>
>        legacyExec = legacyExec)
>
> 5: execGRASS("v.in.ogr", flags = ifelse(ignore.stderr, c("f", "quiet"),
>
>        "f"), intern = TRUE, ignore.stderr = ignore.stderr)
>
> 4: .read_vect_non_plugin(vname = vname, layer = layer, type = type,
>
>        remove.duplicates = remove.duplicates, ignore.stderr =
> ignore.stderr,
>
>        pointDropZ = pointDropZ, driver = driver, with_prj = with_prj,
>
>        with_c = with_c)
>
> 3: tryCatchList(expr, classes, parentenv, handlers)
>
> 2: tryCatch({
>
>        stopifnot(is.logical(plugin) || is.null(plugin))
>
>        stopifnot(is.logical(ignore.stderr))
>
>        if (missing(layer))
>
>            layer <- "1"
>
>        layer <- as.character(layer)
>
>        stopifnot(is.logical(with_c))
>
>        if (!is.null(driver) && driver == "GRASS")
>
>            plugin <- TRUE
>
>        if (!requireNamespace("rgdal", quietly = TRUE)) {
>
>            stop("rgdal not available")
>
>        }
>
>        if (is.null(plugin)) {
>
>            ogrD <- rgdal::ogrDrivers()$name
>
>            plugin <- "GRASS" %in% ogrD
>
>        }
>
>        if (plugin) {
>
>            res <- .read_vect_plugin(vname = vname, layer = layer,
>
>                type = type, ignore.stderr = ignore.stderr, pointDropZ =
> pointDropZ,
>
>                mapset = mapset)
>
>        }
>
>        else {
>
>            res <- .read_vect_non_plugin(vname = vname, layer = layer,
>
>                type = type, remove.duplicates = remove.duplicates,
>
>                ignore.stderr = ignore.stderr, pointDropZ = pointDropZ,
>
>                driver = driver, with_prj = with_prj, with_c = with_c)
>
>        }
>
>    }, finally = {
>
>        if (get.suppressEchoCmdInFuncOption()) {
>
>            tull <- set.echoCmdOption(inEchoCmd)
>
>        }
>
>    })
>
> 1: readVECT("archsites")
>
>
>
>
>
> This error does not show when using R instead of RStudio. I’ve searched
> around and tried to implement the fixes proposed for similar issues
> (unsuccessfully).  I feel that it might be a very simple issue, but I am
> stuck and I will appreciate any help. Here the Sys.getenv() and
> sessionInfo(), in case there are needed.
>
>
>
>
> > Sys.getenv()
>
> __COMPAT_LAYER              RunAsAdmin DetectorsWin7
>
> ADSK_CLM_WPAD_PROXY_CHECK   FALSE
>
> ALLUSERSPROFILE             C:\ProgramData
>
> APPDATA                     C:\Users\...\AppData\Roaming
>
> CLICOLOR_FORCE              1
>
> CommonProgramFiles          C:\Program Files\Common Files
>
> CommonProgramFiles(x86)     C:\Program Files (x86)\Common Files
>
> CommonProgramW6432          C:\Program Files\Common Files
>
> COMPUTERNAME
>
> ComSpec                     C:\WINDOWS\system32\cmd.exe
>
> DISPLAY                     :0
>
> DriverData                  C:\Windows\System32\Drivers\DriverData
>
> FP_NO_HOST_CHECK            NO
>
> GDAL_DATA                   C:/Program Files/R/R-3.5.1/library/rgdal/gdal
>
> GEODA_GDAL_DATA             C:\Program Files\GeoDa Software\data
>
> GEODA_OGR_DRIVER_PATH       C:\Program Files\GeoDa Software
>
> GFORTRAN_STDERR_UNIT        -1
>
> GFORTRAN_STDOUT_UNIT        -1
>
> GRASS_MESSAGE_FORMAT        text
>
> GRASS_PAGER                 cat
>
> HOME                        C:/Users/…/Documents
>
> HOMEDRIVE                   C:
>
> HOMEPATH                    \Users\...
>
> JRI_HOME
> C:\Users\...\Documents\R\win-library\3.4\rJava\jri
>
> LOCALAPPDATA                C:\Users\...\AppData\Local
>
> LOGONSERVER                 \\...
>
> MSYS2_ENV_CONV_EXCL         R_ARCH
>
> NUMBER_OF_PROCESSORS        8
>
> OneDrive                    C:\Users\...\OneDrive
>
> OS                          Windows_NT
>
> PATH                        C:\Program
>
>
> Files\R\R-3.5.1\bin\x64;C:\Rtools\bin;C:\ProgramData\Oracle\Java\javapath;c:\Rtools\gcc-4.6.3\bin;C:\Program
>
>                             Files (x86)\Intel\iCLS Client\;C:\Program
>
>                             Files\Intel\iCLS
>
>
> Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program
>
>                             Files\Intel\Intel(R) Management Engine
>
>                             Components\DAL;C:\Program Files\Intel\Intel(R)
>
>                             Management Engine Components\IPT;C:\Program
> Files
>
>                             (x86)\Intel\Intel(R) Management Engine
>
>                             Components\DAL;C:\Program Files
> (x86)\Intel\Intel(R)
>
>                             Management Engine Components\IPT;C:\Program
> Files
>
>                             (x86)\ATI
> Technologies\ATI.ACE\Core-Static;C:\Program
>
>                             Files\MiKTeX 2.9\miktex\bin\x64\;C:\Program
>
>                             Files\Git\cmd;C:\Program Files
>
>                             (x86)\Skype\Phone\;C:\Program
>
>                             Files\R\R-3.5.1\bin\x64;C:\Program
>
>
> Files\RStudio\bin;C:\WINDOWS\System32\OpenSSH\;C:\Program
>
>                             Files (x86)\Calibre2\;C:\Program
>
>                             Files\Intel\WiFi\bin\;C:\Program Files\Common
>
>                             Files\Intel\WirelessCommon\;C:\Users\...
> \AppData\Local\Microsoft\WindowsApps
>
> PATHEXT
>  .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
>
> PROCESSOR_ARCHITECTURE      AMD64
>
> PROCESSOR_IDENTIFIER        Intel64 Family 6 Model 60 Stepping 3,
> GenuineIntel
>
> PROCESSOR_LEVEL             6
>
> PROCESSOR_REVISION          3c03
>
> ProgramData                 C:\ProgramData
>
> ProgramFiles                C:\Program Files
>
> ProgramFiles(x86)           C:\Program Files (x86)
>
> ProgramW6432                C:\Program Files
>
> PROJ_LIB                    C:/Program Files/R/R-3.5.1/library/rgdal/proj
>
> PSModulePath
> C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\
>
> PUBLIC                      C:\Users\Public
>
> R_ARCH                      /x64
>
> R_COMPILED_BY               gcc 4.9.3
>
> R_DOC_DIR                   C:/PROGRA~1/R/R-35~1.1/doc
>
> R_HOME                      C:/PROGRA~1/R/R-35~1.1
>
> R_LIBS_USER                 C:\Program Files\R\R-3.5.1\library
>
> R_MAP_DATA_DIR              C:/Program
> Files/R/R-3.5.1/library/maps/mapdata/
>
> R_MAP_DATA_DIR_WORLD        C:/Program
> Files/R/R-3.5.1/library/maps/mapdata/
>
> R_USER                      C:/Users/…/Documents
>
> RCRAN                       C:\Program Files\R\R-3.5.1\bin\x64
>
> RMARKDOWN_MATHJAX_PATH      C:/Program Files/RStudio/resources/mathjax-26
>
> RS_LOCAL_PEER               \\.\pipe\30976-rsession
>
> RS_RPOSTBACK_PATH           C:/Program Files/RStudio/bin/rpostback
>
> RS_SHARED_SECRET            63341846741
>
> RSTUDIO                     1
>
> RSTUDIO_CONSOLE_COLOR       256
>
> RSTUDIO_CONSOLE_WIDTH       80
>
> RSTUDIO_MSYS_SSH            C:/Program Files/RStudio/bin/msys-ssh-1000-18
>
> RSTUDIO_PANDOC              C:/Program Files/RStudio/bin/pandoc
>
> RSTUDIO_SESSION_PORT        30976
>
> RSTUDIO_USER_IDENTITY       …
>
> RSTUDIO_WINUTILS            C:/Program Files/RStudio/bin/winutils
>
> SystemDrive                 C:
>
> SystemRoot                  C:\WINDOWS
>
> TEMP                        C:\Users\...\AppData\Local\Temp
>
> TERM                        xterm-256color
>
> TMP                         C:\Users\...\AppData\Local\Temp
>
> USERDOMAIN                  …
>
> USERDOMAIN_ROAMINGPROFILE   …
>
> USERNAME                    …
>
> USERPROFILE                 C:\Users\...
>
> windir                      C:\WINDOWS
>
>
>
>
>
> > sessionInfo()
>
> R version 3.5.1 (2018-07-02)
>
> Platform: x86_64-w64-mingw32/x64 (64-bit)
>
> Running under: Windows >= 8 x64 (build 9200)
>
>
>
> Matrix products: default
>
>
>
> locale:
>
> [1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United
> States.1252
>
> [3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C
>
>
> [5] LC_TIME=English_United States.1252
>
>
>
> attached base packages:
>
> [1] stats     graphics  grDevices utils     datasets  methods   base
>
>
>
> other attached packages:
>
>  [1] dbscan_1.1-2        rgdal_1.3-4         geostatsp_1.7.2
>  Matrix_1.2-14
>
>  [5] raster_2.6-7        maptools_0.9-3      maps_3.3.0
> spatstat_1.56-1
>
>  [9] rpart_4.1-13        nlme_3.1-137        spatstat.data_1.3-1
> rgrass7_0.1-10
>
> [13] XML_3.98-1.16       sp_1.3-1
>
>
>
>
>
>
>
> Thanks in advance,
>
>
>
> William
>         [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo using r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>
-- 
Sarah Goslee (she/her)
http://www.sarahgoslee.com

	[[alternative HTML version deleted]]



More information about the R-sig-Geo mailing list