I cannot load RGeostats!

How to use RGeostats package step-by-step.
Direct access to Tutorial index and Frequently Asked Questions

I cannot load RGeostats!

Postby Fabien Ors » Thu Jul 03, 2014 1:22 pm

After installing RGeostats, if you encounter some difficulties to load the package, please try one of the following :




Wrong R version:

If you obtain an error regarding R version, like this one:
> require(RGeostats)
Error: package or namespace load failed for ‘RGeostats’:
package ‘RGeostats’ was installed by an R version with different internals; it needs to be reinstalled for use with this R version

That mean that you should wait for a new version of RGeostats (built with a recent R version) or downgrade your R version by installing older R.


'closure' is not subsettable:

If you obtain an error regarding 'closure' is not subsettable, like this one:
> library(RGeostats)
Loading RGeostats - Version:11.0.6
Error : .onAttach failed in attachNamespace() for 'RGeostats', details:
call: projdef$active
error: object of type 'closure' is not subsettable
Error: package or namespace load failed for ‘RGeostats’

The problem probably comes from the use of projections (mapproj).
You can try to load RGeostats from an empty workspace or not loading the mappproj packages.
Otherwise, try to rename .Last.projection object in your current workspace before loading RGeostats.
More details here


Conversion problem:

This problem is a common issue for people who tries to load (or switch to) old RGeoS workspaces.
When loading the RGeostats package using the library() command, RGeostats (<= 10.0.7) looks for any object in the current workspace that has been created with the previous RGeoS package in order to convert it automatically (more info here). Under certain situation some existing special objects could lead to abort this procedure. So, the RGeostats package cannot be loaded and an error message is issued. For instance:
Error : .onAttach failed in 'attachNamespace' for 'RGeostats', details :
call : as.environment(pos)
error : no item called "eval(parse(text = name))" in the search list
Error : package/namespace load failed for ‘RGeostats’


Debugging information:

If you still have a problem loading the RGeostats package, please follow these instructions:
viewtopic.php?f=3&t=387







Older stuff...

Since RGeostats v10.0.8, there is no more automatic check at loading. The conversion of old workspaces must be done manually using the command workspace.RGeoS.to.RGeostats.


Here is possible way to fix this problem:
  • First possibility:
    • Backup the .RData file from the current directory (look at getwd() command)
    • Then, remove all the objects from the current workspace:
      Code: Select all
      rm(list=ls())
  • Second possibilty :
    • Rename the .RData file from the current directory (look at getwd() command)
  • Finally, reload the RGeostats package (and activate the license if needed):
    Code: Select all
    library(RGeostats)
    license.define()

If you don't want to loose your previous workspace objects, please, send us by EMail your backup .RData file so that we could find a solution to fix the conversion.


License problem (version < 11):

You have tried to activate your license following these instructions but RGeostats still indicates this error (message could be different in future versions):
Geoslib 10.0.0 - June, 24th 2014
Problem with the Geoslib License
========================
You must register a valid License for Geoslib!
To identify yourself, please carefully note the activation code:

XXXXX

In case of problem, please contact: rgeostats@geosciences.mines-paristech.fr

You can generate your License File from the site:
http://rgeostats.free.fr/form.php
You will automatically receive the license file by email.
(If no mail arrives, please check your JUNK mail or SPAMs)

When you receive a valid License File:
- place it into your favorite location on disk (no special characters into the path)
- use the command license.define()

Failed to load RGeostats - Version: 10.0.4


  • Check that the activation code is correctly spelled (mismatch between '5' and 'S' for instance). Copy/Paste your activation code into the questionnaire to prevent error
  • Check that the complete path of your license file doesn't contain any special characters. In case of doubts, place it in the following folders:
    • Windows: C:/NAME_XXXXXX.code
    • Linux or Mac: /tmp/NAME_XXXXXX.code
  • Under Windows, you should prefer using license.define() without any argument in order to select your file graphically
  • Under any platform, using license.define(filename="<path>") with the complete path as argument, don't forget to use the automatic completion of the path ('Tab' key).
Fabien Ors
Administrateur du site
 
Posts: 149
Joined: Thu Sep 20, 2012 1:07 pm

Return to Tutorials and FAQ

Who is online

Users browsing this forum: No registered users and 0 guests

cron