stan-dev / posteriordb

Database with posteriors of interest for Bayesian inference
176 stars 36 forks source link

"subdir" in installation script not specified correctly #143

Closed yizhang-yiz closed 4 years ago

yizhang-yiz commented 4 years ago

Not working for me:

> remotes::install_github("MansMeg/posteriordb", subdir = "rpackage/")
Error: Failed to install 'unknown package' from GitHub:
  HTTP error 404.
  Not Found

  Did you spell the repo owner (`MansMeg`) and repo name (`posteriordb`) correctly?
  - If spelling is correct, check that you have the required permissions to access the repo.

Removing the slash after rpackage works for me

> remotes::install_github("MansMeg/posteriordb", subdir = "rpackage")
Downloading GitHub repo MansMeg/posteriordb@master
...

What I'm using:

> sessionInfo()
R version 3.6.2 (2019-12-12)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS Mojave 10.14.6

Matrix products: default
BLAS:   /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libRblas.0.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.6/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] ps_1.3.0          fansi_0.4.0       prettyunits_1.0.2 withr_2.1.2      
 [5] rprojroot_1.3-2   crayon_1.3.4      assertthat_0.2.1  R6_2.4.1         
 [9] backports_1.1.5   magrittr_1.5      cli_2.0.0         curl_4.3         
[13] remotes_2.1.0     callr_3.4.0       tools_3.6.2       glue_1.3.1       
[17] compiler_3.6.2    processx_3.4.1    pkgbuild_1.0.6   
MansMeg commented 4 years ago

Thank you for noticing this! I will fix this asap!

MansMeg commented 4 years ago

Now fixed! Sorry for the delay, and thanks for the comment!