noaa-onms / climate-dashboard

dashboard of climate indicators across sanctuaries
https://noaa-onms.github.io/climate-dashboard/
MIT License
1 stars 0 forks source link

onmsR install not installing (Rgdal not avaiable) #12

Closed 7yl4r closed 10 months ago

7yl4r commented 10 months ago

When sourceing make_pages.R, librarian isn't able to install onmsR.

Error text:

── R CMD build ───────────────────────────────────────────────────────────────────────────────────────────── ✔  checking for file ‘/tmp/Rtmpdw3peb/remotesc80ee38b85148/noaa-onms-onmsR-ea5c3e5/DESCRIPTION’ ... ─  preparing ‘onmsR’: ✔  checking DESCRIPTION meta-information ... ─  checking for LF line-endings in source and make files and shell scripts ─  checking for empty or unneeded directories ─  building ‘onmsR_0.2.2.tar.gz’    Warning in utils::tar(filepath, pkgname, compression = compression, compression_level = 9L,  :      storing paths of more than 100 bytes is not portable:      ‘onmsR/inst/template_website/modals/site_libs/bootstrap-3.3.5/fonts/glyphicons-halflings-regular.woff2’     ERROR: dependency ‘rgdal’ is not available for package ‘onmsR’ * removing ‘/home/tylar/R/x86_64-pc-linux-gnu-library/4.2/onmsR’ nrow(nmsanctuaries): 15 American Samoa -> NMSAS.html Error in loadNamespace(x) : there is no package called ‘flexdashboard’ In addition: Warning messages: 1: In stock(..., lib = lib, update_all = update_all, quiet = quiet,  :    These packages failed to install:    'onmsR'    Check the spelling and capitalisation of the names.    Are they Bioconductor packages? If so, please install Bioconductor   (BiocManager and BiocBase).    Are they from GitHub? If so, please supply both the GitHub username   and package name, e.g. DesiQuintans/librarian 2: In librarian::shelf(dplyr, marinebon/extractr, fs, glue, here, "noaa-onms/onmsR",  :      These packages are not installed, so they were not attached:    'onmsR'    Did they fail to install? Are they spelled correctly?
--
 
  |  
 

<br class="Apple-interchange-newline">

image

7yl4r commented 10 months ago

I've worked through that issue by pointing to noaa-onms/onmsR on github but am now stuck with rgdal. Looks like the whole lib got deprecated:

https://cran.r-project.org/web/packages/rgdal/index.html

I guess onmsR needs to be updated to use sf or terra?

bbest commented 10 months ago

Fixed with commit https://github.com/noaa-onms/climate-dashboard/commit/4dd3350e6614f21c1fbf533767c6f0d5b470780e