chrisvwn / Rnightlights

R package to extract data from satellite nightlights.
GNU General Public License v3.0
47 stars 14 forks source link

Installing in version 3.6.1 #44

Closed ludelgad closed 4 years ago

ludelgad commented 4 years ago

I´m getting the following message when trying to install in Mac OS X Rnightlights package:

Warning in install.packages : package ‘Rnightlights’ is not available (for R version 3.6.1)

Trying to install it manually but couldn´t do it. Thanks

chrisvwn commented 4 years ago

Hi @ludelgad,

The package is currently down for review. You can install it from the archive using the following command:

packageurl <- "https://cran.r-project.org/src/contrib/Archive/Rnightlights/Rnightlights_0.2.4.tar.gz"
install.packages(packageurl, repos=NULL, type="source")

If this does not work. Try installing the dependencies first as they are listed

ludelgad commented 4 years ago

Thanks for the fast reply @chrisvwn . I already tried and it appears the following error:

ERROR: dependencies ‘cleangeo’, ‘curl’, ‘data.table’, ‘doSNOW’, ‘dplyr’, ‘ff’, ‘ffbase’, ‘foreach’, ‘lubridate’, ‘raster’, ‘readr’, ‘reshape2’, ‘rgdal’, ‘rgeos’, ‘R.utils’, ‘rvest’, ‘rworldmap’, ‘settings’, ‘snow’, ‘sp’, ‘stringr’, ‘xml2’ are not available for package ‘Rnightlights’

How I should proceed?

Thanks!

chrisvwn commented 4 years ago

You can install the dependencies first i.e.

install.packages(c('cleangeo', 'curl', 'data.table', 'doSNOW', 'plyr', 'ff', 'ffbase', 'foreach', 'lubridate', 'raster', 'readr', 'reshape2', 'rgdal', 'rgeos', 'R.utils', 'rvest', 'rworldmap', 'settings', 'snow', 'sp', 'stringr', 'xml2'))

packageurl <- "https://cran.r-project.org/src/contrib/Archive/Rnightlights/Rnightlights_0.2.4.tar.gz"
install.packages(packageurl, repos=NULL, type="source")
chrisvwn commented 4 years ago

Closing this issue. Please reopen if you are still encountering a problem.