[SOLVED] RGeostats avec R studio

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

[SOLVED] RGeostats avec R studio

Postby adrien » Thu Nov 20, 2014 7:07 pm

Bonjour,
j'utilisais RGeoS avec R studio sans problème.
La nouvelle version RGeostats fonctionne très bien avec R (version 3), mais lorsque je veux travailler sous environnement Rstudio avec la même version de R (version 3), la librairie ne charge pas.

Voici le message d'erreur:
Error : .onAttach a échoué dans attachNamespace() pour 'RGeostats', détails :
appel : get(".Last.projection")$projection
erreur : object of type 'closure' is not subsettable
Error: le chargement du package ou de l'espace de noms a échoué pour ‘RGeostats’

Merci de votre aide

Adrien
adrien
 
Posts: 2
Joined: Thu Nov 20, 2014 7:01 pm

Re: RGoestats avec R studio

Postby Fabien Ors » Fri Nov 21, 2014 3:35 pm

Bonjour Adrien,
(je répond en anglais pour en faire profiter tout le monde ;-) ...)

Your problem comes from the fact that the current workspace which is open by R Studio, has some previous special objects.
(Here a projection description file : ".Last.projection")
RGeostats will try to convert automatically previous RGeoS object to be sure that the attribute "package name" won't be RGeoS anymore.
Please look at this message which explains some workarounds :
viewtopic.php?f=3&t=181#conversion

Hope this helps
Fabien Ors
Administrateur du site
 
Posts: 226
Joined: Thu Sep 20, 2012 1:07 pm

Re: RGeostats avec R studio

Postby adrien » Tue Dec 02, 2014 9:34 am

Hi,
It seems that the conflict is due to another package "mapproj"
From now, I upload RGeostats in the first place and the problem is solved.
Anyway, thanks for your help.
Adrien
adrien
 
Posts: 2
Joined: Thu Nov 20, 2014 7:01 pm


Return to Installing RGeostats

Who is online

Users browsing this forum: No registered users and 3 guests

cron