ncx-co / tidyFIA

Apache License 2.0
16 stars 2 forks source link

Unable to install #15

Closed e-lustig closed 1 year ago

e-lustig commented 3 years ago

Tried installing via the command in the ReadMe remotes::install_github("SilviaTerra/tidyFIA") and this is the error I get.

Downloading GitHub repo SilviaTerra/tidyFIA@HEAD
Skipping 1 packages not available: raster
Installing 3 packages: raster, spData, sf
Installing packages into ‘/home/emma/R/x86_64-pc-linux-gnu-library/3.4’
(as ‘lib’ is unspecified)
Warning: dependency ‘raster’ is not available
trying URL 'https://cloud.r-project.org/src/contrib/spData_0.3.10.tar.gz'
Content type 'application/x-gzip' length 3817338 bytes (3.6 MB)
==================================================
downloaded 3.6 MB

trying URL 'https://cloud.r-project.org/src/contrib/sf_1.0-2.tar.gz'
Content type 'application/x-gzip' length 3645982 bytes (3.5 MB)
==================================================
downloaded 3.5 MB

ERROR: dependency ‘raster’ is not available for package ‘spData’
* removing ‘/home/emma/R/x86_64-pc-linux-gnu-library/3.4/spData’
* installing *source* package ‘sf’ ...
** package ‘sf’ successfully unpacked and MD5 sums checked
configure: CC: gcc -std=gnu99
configure: CXX: g++ -std=gnu++11
checking for gdal-config... no
no
configure: error: gdal-config not found or not executable.
ERROR: configuration failed for package ‘sf’
* removing ‘/home/emma/R/x86_64-pc-linux-gnu-library/3.4/sf’

The downloaded source packages are in
    ‘/tmp/RtmpFgjcna/downloaded_packages’
✓  checking for file ‘/tmp/RtmpFgjcna/remotes4c9325670030/SilviaTerra-tidyFIA-d2d2773/DESCRIPTION’ ...
─  preparing ‘tidyFIA’:
✓  checking DESCRIPTION meta-information ...
─  checking for LF line-endings in source and make files and shell scripts
─  checking for empty or unneeded directories
─  looking to see if a ‘data/datalist’ file should be added
─  building ‘tidyFIA_0.14.tar.gz’

Installing package into ‘/home/emma/R/x86_64-pc-linux-gnu-library/3.4’
(as ‘lib’ is unspecified)
ERROR: dependencies ‘sf’, ‘spData’ are not available for package ‘tidyFIA’
* removing ‘/home/emma/R/x86_64-pc-linux-gnu-library/3.4/tidyFIA’
Warning messages:
1: In download.file(.rs.completeUrl(.rs.appendSlashIfNeeded(url), "src/contrib/PACKAGES.gz"),  :
  URL 'http://0- Cloud - Rstudio, automatic redirection to servers worldwide/src/contrib/PACKAGES.gz': status was 'URL using bad/illegal format or missing URL'
2: package ‘raster’ is not available (for R version 3.4.4) 
3: In i.p(...) : installation of package ‘spData’ had non-zero exit status
4: In i.p(...) : installation of package ‘sf’ had non-zero exit status
5: In i.p(...) :
  installation of package ‘/tmp/RtmpFgjcna/file4c931de274d1/tidyFIA_0.14.tar.gz’ had non-zero exit status
hrodmn commented 3 years ago

@e-lustig it looks like there may be an issue with your system dependencies. Do you have GDAL installed on your computer? I can't tell which operating system you are using, but you can follow the instructions for installing the geospatial software dependencies from the sf package installation instructions. Try following those instructions then re-try tidyFIA installation and let me know if you are still having trouble!