NOAA-EDAB / ecodata

A data package for reporting on Northeast Continental Shelf ecosystem status and trends.
https://noaa-edab.github.io/ecodata/
Other
28 stars 11 forks source link

Error installing ecodata v5.0.0 #136

Closed cabanelas closed 4 months ago

cabanelas commented 4 months ago

I am getting an error when trying to install the latest version of ecodata.

remotes::install_github("noaa-edab/ecodata",build_vignettes=TRUE)

Downloading GitHub repo noaa-edab/ecodata@HEAD
Error in utils::download.file(url, path, method = method, quiet = quiet,  : 
  download from 'https://api.github.com/repos/noaa-edab/ecodata/tarball/HEAD' failed

I also tried

pak::pkg_install("noaa-edab/ecodata")
Error:                                                         
! error in pak subprocess
Caused by error: 
! Could not solve package dependencies:
* noaa-edab/ecodata: ! pkgdepends resolution error for noaa-edab/ecodata.
Caused by error: 
! Bad GitHub credentials, make sure that your GitHub token is valid.
Caused by error in `stop(http_error(resp))`:
! Unauthorized (HTTP 401).

In case this helps

> Sys.getlocale()
[1] "LC_COLLATE=English_United States.utf8;LC_CTYPE=English_United States.utf8;LC_MONETARY=English_United States.utf8;LC_NUMERIC=C;LC_TIME=English_United States.utf8"

> sessionInfo()
R version 4.3.2 (2023-10-31 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 11 x64 (build 22631)

Matrix products: default

locale:
[1] LC_COLLATE=English_United States.utf8 
[2] LC_CTYPE=English_United States.utf8   
[3] LC_MONETARY=English_United States.utf8
[4] LC_NUMERIC=C                          
[5] LC_TIME=English_United States.utf8    

time zone: America/New_York
tzcode source: interna

Another colleague tried and saw the same error.

andybeet commented 4 months ago

A couple of questions.

  1. Can you install any other packages from GitHub using remotes?
  2. Can you tell me what this function returns remotes:::download_method()?
  3. Can you navigate to control panel -> internet options -> Advanced. Look for a Use TLS 1.x. Which versions are checked?
cabanelas commented 4 months ago

I just tried on my desktop at home and had no issues updating to v5.0.0... not sure what is the issue on my laptop. I left the office and will reunite with my laptop next week. I will updated you on what I get for your questions/suggestions. Thanks!!

cabanelas commented 4 months ago

Just checked again on my laptop and was able to install ecodata v5.0.1. In case this helps...

  1. yes, I'm able to install other packages from GitHub
  2. > remotes:::download_method()
    [1] "libcurl"
  3. Use TLS 1.2 and Use TLS 1.3 are checked

Thanks again for following up!