GlobalFishingWatch / gfwr

R package for accessing data from Global Fishing Watch APIs
https://globalfishingwatch.github.io/gfwr/
Apache License 2.0
59 stars 7 forks source link

Functions not loading #24

Closed CianGFW closed 2 years ago

CianGFW commented 2 years ago

I installed and loaded the package as:

devtools::install_github("GlobalFishingWatch/gfwr")
library(gfwr)

But when I try to use a function, e.g. gfwr::get_vessel_info(), this returns Error: 'get_vessel_info' is not an exported object from 'namespace:gfwr'.

The only gfwr:: functions available appear to be:

gfwr::get_eez_code()
gfwr::gfw_auth()
gfwr::gist_error_body()
gfwr::make_char()
gfwr::make_datetime()
gfwr::paginate()
gfwr::`%>%`

Session info:

sessionInfo()
R version 4.2.0 (2022-04-22 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19044)
natemiller commented 2 years ago

Thanks @CianGFW . This was an oversight and we'll fix it and ping you when its working.Thank you for the catch.

natemiller commented 2 years ago

@CianGFW This should be fixed now. Please reinstall the package from github and let us know if you still have issues.

I have actually change the export of some functions as they are only used internally so you will no long see the following functions. But you shouldn't need them either.

gfwr::gist_error_body()
gfwr::make_char()
gfwr::make_datetime()
gfwr::paginate()
CianGFW commented 2 years ago

Perfect. That's fixed it now