Jump to content


Photo

Issue with loading Geosphere

R FLightR Geosphere ggmap FlightRmap

  • Please log in to reply
3 replies to this topic

#1 sabiina.m

sabiina.m
  • General Members
  • 2 posts
  • Manitoba,
  • Canada

Posted 31 August 2017 - 08:07 AM

Hello! 

I am currently using FLightR to analyze geolocator data for migration routes and timing events, but I have been having issues specifically with loading the package geosphere (sometimes the package MASS is an issue too, but geosphere only works less than half the time for the past month I'd say). I am using geosphere to produce final FLightR maps showing migration results and movements represented by a calendar year legend. 

 

I am working on two monitors, one computer, where very often I have two different RStudios running and when installing geosphere it continually says geosphere was successfully unpacked in both R sessions, but then only one or none of the maps will load after running the following line,

 

"map.FLightR.ggmap(Result163, seasonal.donut.location=NULL, save=TRUE)"

 

I am currently running version 3.4.1 "Single Candle", and I have also used/run version 3.3.2 "Sincere Pumpkin Patch" where geosphere also used to only work occasionally. Geosphere does not appear to be on the update packages list, therefore any recommendations on how to get geosphere to consistently work?

 

Thank you so much for your time and help in advance!

Sabina 



#2 Eldar

Eldar
  • General Members
  • 39 posts
  • Netherlands,
  • Netherlands

Posted 06 September 2017 - 01:13 AM

  Hi Sabina,

 I am not sure there can be geosphere issue, at least I do not use it in FLightR.

You can always run 

library(geosphere) before running the function.

   Sometimes seasonal donut does not work. For that you should try 

library(grid) before running the function. 

 

but then only one or none of the maps will load after running the following line

 

 But how many maps you expect there?

 Regards,

   Eldar



#3 sabiina.m

sabiina.m
  • General Members
  • 2 posts
  • Manitoba,
  • Canada

Posted 08 September 2017 - 07:48 AM

Hi Eldar,

 

Thank you for your response!

 

I think I was unclear when I said "only one or none of the maps will load", what I was referring to was when I have 2 monitors and 2 different R studios open, sometimes geosphere will load and run successfully in one studio, but not the other (even when they are the same version and have had the same packages downloaded, strange I thought). But as of lately, the last couple weeks, geosphere has not worked/downloaded/installed at all to produce the final FLightR maps that I require visually and for my migration route analysis. I thought you did require geosphere in FLightR to produce the final FLightR maps but you mentioned you do not use it in FLightR?

 

The error message I get is as follows:

 

Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : 
  there is no package called ‘geosphere’
 
 
Thanks for your time and help!
 
Sabina


#4 Eldar

Eldar
  • General Members
  • 39 posts
  • Netherlands,
  • Netherlands

Posted 09 September 2017 - 12:19 AM

 Hi Sabina,

What is your FLightR version? Try installing the latest from github.

devtools::install_github('eldarrak/FLightR')

and what happens if you run
 

install.packages('geosphere')

before running the plotting function?







Also tagged with one or more of these keywords: R, FLightR, Geosphere, ggmap, FlightRmap

0 user(s) are reading this topic

0 members(s), 0 guests(s) and 0 anonymous member(s)