[SOLVED] cannot load RGeostats in R or RStudio on my Mac

Any problem when installing, launching or using RGeostats, on different Operating Systems or Working Environments

[SOLVED] cannot load RGeostats in R or RStudio on my Mac

Postby mcfuchs » Thu Jul 07, 2016 8:35 am

Hi,
i encountered a very weird problem when I want to use RGeostats.
After install I tried to load the package in RStudio that instantly crashes, same in R, also when I first load Rcpp.

I use
Mac OS 10.11.5
R 3.3.1
RStudio 0.99.902

After installing the package
RGeostats_11.0.1_macosx.tar (same with RGeostats_11.0.1_macosx.tgz)
via RStudio - install.packages(..., type = "binary") everything seemed fine until i tried to load the package,
then R as well as RStudio crash with the error message window "R session aborted - fatal error - the session was terminated"

so I uninstalled RGeostats and re-did the install via the terminal
1) open R with empty workspace - ok
2) download package - ok
3) terminal install: R CMD INSTALL /.../RGeostats_11.0.1_macosx.tgz
-> result: ...DONE (RGeostats)

then I opened R and loaded the package Rcpp first
and the tried RGeostats
-> result:
starting httpd help server ... done

 *** caught segfault ***
address 0x18, cause 'memory not mapped'

Traceback:
 1: .Call("R_constant_reset", PACKAGE = "RGeostats")
 2: constant.reset()
 3: environ.load()
 4: fun(libname, pkgname)
 5: doTryCatch(return(expr), name, parentenv, handler)
 6: tryCatchOne(expr, names, parentenv, handlers[[1L]])
 7: tryCatchList(expr, classes, parentenv, handlers)
 8: tryCatch(fun(libname, pkgname), error = identity)
 9: runHook(".onAttach", ns, dirname(nspath), nsname)
10: attachNamespace(ns, pos = pos, deps)
11: doTryCatch(return(expr), name, parentenv, handler)
12: tryCatchOne(expr, names, parentenv, handlers[[1L]])
13: tryCatchList(expr, classes, parentenv, handlers)
14: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call)[1L]        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        msg <- conditionMessage(e)        sm <- strsplit(msg, "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && identical(getOption("show.error.messages"),         TRUE)) {        cat(msg, file = stderr())        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
15: try({    attr(package, "LibPath") <- which.lib.loc    ns <- loadNamespace(package, lib.loc)    env <- attachNamespace(ns, pos = pos, deps)})
16: library(RGeostats)

Possible actions:
1: abort (with core dump, if enabled)
2: normal R exit
3: exit R without saving workspace
4: exit R saving workspace

Selection: 

Does anyone has a clue how to solve this weird situation?
Any idea which damon might collide with the C code of RGeostats?

thanks,
margret
mcfuchs
 
Posts: 1
Joined: Mon Jul 04, 2016 8:09 am

Re: cannot load RGeostats in R or RStudio on my Mac

Postby Fabien Ors » Thu Jul 07, 2016 10:44 am

Please, could you provide us the results of the following R commands:
Code: Select all
getwd()
R.Version()$platform
R.Version()$version.string
packageVersion("Rcpp")
packageVersion("RGeostats")
for (trgo_ in ls(all.names=T)) { print(trgo_); print(class(eval(parse(text=trgo_)))); cat("\n") }; rm(trgo_)
Fabien Ors
Administrateur du site
 
Posts: 226
Joined: Thu Sep 20, 2012 1:07 pm


Return to Installing RGeostats

Who is online

Users browsing this forum: No registered users and 1 guest

cron