Page 1 of 1

[SOLVED] Cannot load RGeostats on RStudio

PostPosted: Wed Aug 24, 2016 3:28 am
by gabrielclimb
I had a error to load RGeostats on R Studio, someone could help me, please?

Error : .onAttach failed in attachNamespace() for 'RGeostats', details:
call: get(".Last.projection")$projection
error: object of type 'closure' is not subsettable
Error: package or namespace load failed for ‘RGeostats’

Re: cannot load RGeostats on RStudio

PostPosted: Mon Aug 29, 2016 8:36 am
by Fabien Ors
Did you installed mapproj or maps package ?
Could you send me back the results of following commands:
Code: Select all
getwd()
R.Version()$platform
R.Version()$version.string
packageVersion("Rcpp")
packageVersion("RGeostats")
packageVersion("maps")
packageVersion("mapproj")
for (trgo_ in ls(all.names=T)) { print(trgo_); print(class(eval(parse(text=trgo_)))); cat("\n") }; rm(trgo_)

Re: cannot load RGeostats on RStudio

PostPosted: Wed Sep 06, 2017 12:57 pm
by Fabien Ors
Dear Gabriel.
A workaround has been found to the problem about the 'closure' error:
Please have a look to the workaround here while waiting for the next RGeostats version which will fix this issue.

Re: cannot load RGeostats on RStudio

PostPosted: Fri Sep 29, 2017 1:27 pm
by Fabien Ors
The new RGeostats version 11.1.2 fixes the closure error when using projection:
viewtopic.php?f=2&t=390