gbifmap {rgbif} error

44 views
Skip to first unread message

Yassine Mrabet

unread,
Apr 23, 2014, 7:26:21 AM4/23/14
to ropensci...@googlegroups.com
Hi,
I receive this error message when running the following script (from rgbif tutorial):

Error in complete.cases(input$latitude, input$latitude) :


library(rgbif)
library(plyr)
library(XML)
library(httr)
library(maps)
library(ggplot2)
key <- name_backbone(name = "Puma concolor", kingdom = "plants")$speciesKey
dat <- occ_search(taxonKey = key, return = "data", limit = 300, fields = "all")
dat$name <- "Puma concolor"  
gbifmap(input = dat)

Please, what is the meaning of this error? 

Regards,
Yassine Mrabet


Additional outputs: 
> version
platform       x86_64-w64-mingw32          
arch           x86_64                      
os             mingw32                     
system         x86_64, mingw32             
status                                     
major          3                           
minor          0.3                         
year           2014                        
month          03                          
day            06                          
svn rev        65126                       
language       R                           
version.string R version 3.0.3 (2014-03-06)
nickname       Warm Puppy  
> packageVersion("rgbif")
0.6.0

Scott Chamberlain

unread,
Apr 23, 2014, 10:13:53 AM4/23/14
to ropensci...@googlegroups.com
Hi, 

So sorry about that. We updated a lot in this new version, but must have forgot about the map function. GBIF changed the name of the latitude and longitude variables to decimalLaitude and decimalLongitude to fit closer with a standard for data called Darwin Core.  We updated rgbif for this, but not gbif map apparently. I'll submit a new version today, and I'll send you a file you should be able to install with the fix soon. 

Scott
Message has been deleted

Yassine Mrabet

unread,
Apr 23, 2014, 10:32:50 AM4/23/14
to ropensci...@googlegroups.com
Thank you for your quick response. I thinks that you made a great job with this library. good luck!

Scott Chamberlain

unread,
Apr 23, 2014, 10:51:35 AM4/23/14
to ropensci...@googlegroups.com
Hi, 

Here is a packaged version of rgbif with the fixes. You should be able to install by doing

install.packages("pathtofile/rgbif_0.6.2.tar.gz", repos=NULL, type="source")

Let me know if that does or doesn't work.

Scott
rgbif_0.6.2.tar.gz

Yassine Mrabet

unread,
Apr 23, 2014, 2:27:09 PM4/23/14
to ropensci...@googlegroups.com
It works perfectly fine, thank you !
Rplot02.png

Scott Chamberlain

unread,
Apr 23, 2014, 2:28:24 PM4/23/14
to ropensci...@googlegroups.com
Great!
> --
> You received this message because you are subscribed to the Google Groups
> "ropensci-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ropensci-discu...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages