chrisvwn / Rnightlights

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

Installation error #65

Closed juansqw closed 3 years ago

juansqw commented 3 years ago

I downloaded the most recent version in CRAN Archive and tried to install it using: install.packages("~/Downloads/Rnightlights_0.2.4.tar", repos = NULL)

However I got an error saying: Error in install.packages : type == "both" cannot be used with 'repos = NULL'

How can I fix this? Do I need to download some repos?

chrisvwn commented 3 years ago

I think the problem might be to do with installing dependencies. The package has dependencies which require the repo argument. Is it not working if you don't specify the repo?

You could also try:

devtools::install_local("~/Downloads/Rnightlights_0.2.4.tar", dependencies=TRUE)
chrisvwn commented 3 years ago

Closing this due to inactivity. Please reopen if you still have this issue.