outbreak-info / R-outbreak-info

R package to access the genomics and epidemiology data and Research Library metadata compiled and standardized on outbreak.info.
https://outbreak-info.github.io/R-outbreak-info/
MIT License
20 stars 10 forks source link

Unable to install due to expired SSL certificate #66

Closed watronfire closed 2 years ago

watronfire commented 2 years ago

Hi All,

I'm attempt to install the dev branch of the package using the following function call: devtools::install_github("outbreak-info/R-outbreak-info@dev" )

But I'm getting an error that the SSL certificate has expired.

The downloaded binary packages are in
    /var/folders/ct/hf5sjtrx29q3hzh3tqrd53740000gn/T//RtmpPl0a7w/downloaded_packages
✓  checking for file ‘/private/var/folders/ct/hf5sjtrx29q3hzh3tqrd53740000gn/T/RtmpPl0a7w/remotes16b9a54371b03/outbreak-info-R-outbreak-info-e8a1fd7/DESCRIPTION’ ...
─  preparing ‘outbreakinfo’:
✓  checking DESCRIPTION meta-information ...
─  excluding invalid files
   Subdirectory 'man' contains invalid file names:
     ‘daily_cases-1.png’
─  checking for LF line-endings in source and make files and shell scripts
─  checking for empty or unneeded directories
─  building ‘outbreakinfo_0.2.0.tar.gz’

* installing *source* package ‘outbreakinfo’ ...
** using staged installation
** R
** byte-compile and prepare package for lazy loading
Warning: replacing previous import ‘jsonlite::flatten’ by ‘purrr::flatten’ when loading ‘outbreakinfo’
Error in curl::curl_fetch_memory(url, handle = handle) : 
  SSL certificate problem: certificate has expired
Error: unable to load R code in package ‘outbreakinfo’
Execution halted
ERROR: lazy loading failed for package ‘outbreakinfo’
* removing ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/outbreakinfo’
* restoring previous ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/outbreakinfo’
Error: Failed to install 'outbreakinfo' from GitHub:
  (converted from warning) installation of package ‘/var/folders/ct/hf5sjtrx29q3hzh3tqrd53740000gn/T//RtmpPl0a7w/file16b9aa3628d4/outbreakinfo_0.2.0.tar.gz’ had non-zero exit status

Attached is my sessionInfo() if helpful,

R version 4.0.2 (2020-06-22)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Mojave 10.14.6

Matrix products: default
BLAS:   /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
 [1] compiler_4.0.2     pillar_1.6.3       progress_1.2.2     prettyunits_1.1.1  remotes_2.1.1      tools_4.0.2       
 [7] testthat_2.3.2     digest_0.6.28      pkgbuild_1.0.8     pkgload_1.1.0      jsonlite_1.7.2     memoise_1.1.0     
[13] lifecycle_1.0.1    tibble_3.1.5       gtable_0.3.0       pkgconfig_2.0.3    rlang_0.4.11       rstudioapi_0.13   
[19] DBI_1.1.1          cli_3.0.1          curl_4.3.2         withr_2.4.2        dplyr_1.0.7        hms_1.1.1         
[25] desc_1.2.0         generics_0.1.0     fs_1.4.2           vctrs_0.3.8        devtools_2.3.0     rprojroot_1.3-2   
[31] grid_4.0.2         tidyselect_1.1.1   glue_1.4.2         R6_2.5.1           processx_3.5.2     fansi_0.5.0       
[37] sessioninfo_1.1.1  tzdb_0.1.2         readr_2.0.2        purrr_0.3.4        ggplot2_3.3.5      callr_3.7.0       
[43] magrittr_2.0.1     backports_1.1.8    scales_1.1.1       ps_1.3.3           ellipsis_0.3.2     usethis_1.6.1     
[49] assertthat_0.2.1   colorspace_2.0-2   utf8_1.2.2         munsell_0.5.0      crayon_1.4.1       outbreakinfo_0.2.0
flaneuse commented 2 years ago

thanks @watronfire -- we'll look into it.

gkarthik commented 2 years ago

@watronfire I'm unable to reproduce this error and I suspect its not an error with the package rather an issue with the local curl installation. Could you try reinstalling curl again (below) and rerunning?

install.packages("curl", type = "source", repos = "http://cran.rstudio.com/")

Could you also confirm that you are able to install other packages?

watronfire commented 2 years ago

I reinstalled curl using the command you provided without an issue, but the error while installing the outbreakinfo package remains.

I can also confirm that I can install other packages. I just tested by installing a random package from github.

> devtools::install_github("erichare/discreteRV")
Downloading GitHub repo erichare/discreteRV@master
✓  checking for file ‘/private/var/folders/ct/hf5sjtrx29q3hzh3tqrd53740000gn/T/RtmpdMIDWh/remotes16f04760be5ab/erichare-discreteRV-a42654f/DESCRIPTION’ ...
─  preparing ‘discreteRV’:
✓  checking DESCRIPTION meta-information ...
─  checking for LF line-endings in source and make files and shell scripts
─  checking for empty or unneeded directories
─  building ‘discreteRV_1.2.2.9001.tar.gz’

* installing *source* package ‘discreteRV’ ...
** using staged installation
** R
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (discreteRV)
gkarthik commented 2 years ago

@watronfire I cleaned up some benchmarking code that could be an issue because a request was being sent. I installed it locally on a fresh R installation and it worked. Could you please confirm if you can install from the branch now? Thanks!

watronfire commented 2 years ago

Thanks @gkarthik, that seems to have done the trick. I was able to successfully install from the dev branch.

flaneuse commented 2 years ago

sorry nate, that was my fault. never push commits written late at night.