New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build_site() fails behind a proxy #861
Comments
|
Try setting |
|
I got the same error :( |
|
You need the dev version of pkgdown for that option to have an effect. |
|
I just installed 1.1.0.9000 and it didn't take. Is there a specific branch I can try? |
|
@jayhesselberth Hi, I reinstall package in the dev version, but the error happens again. Here is the error message."si"
#> [1] "si"Created on 2018-11-09 by the reprex package (v0.2.1) Session infodevtools::session_info()
#> Session info -------------------------------------------------------------
#> setting value
#> version R version 3.5.1 (2018-07-02)
#> system x86_64, darwin15.6.0
#> ui X11
#> language (EN)
#> collate zh_CN.UTF-8
#> tz Asia/Shanghai
#> date 2018-11-09
#> Packages -----------------------------------------------------------------
#> package * version date source
#> backports 1.1.2 2017-12-13 CRAN (R 3.5.0)
#> base * 3.5.1 2018-07-05 local
#> compiler 3.5.1 2018-07-05 local
#> datasets * 3.5.1 2018-07-05 local
#> devtools 1.13.6 2018-06-27 CRAN (R 3.5.0)
#> digest 0.6.18 2018-10-10 CRAN (R 3.5.0)
#> evaluate 0.12 2018-10-09 CRAN (R 3.5.0)
#> graphics * 3.5.1 2018-07-05 local
#> grDevices * 3.5.1 2018-07-05 local
#> htmltools 0.3.6 2017-04-28 CRAN (R 3.5.0)
#> knitr 1.20 2018-02-20 CRAN (R 3.5.0)
#> magrittr 1.5 2014-11-22 CRAN (R 3.5.0)
#> memoise 1.1.0 2017-04-21 CRAN (R 3.5.0)
#> methods * 3.5.1 2018-07-05 local
#> Rcpp 0.12.19 2018-10-01 CRAN (R 3.5.0)
#> rmarkdown 1.10 2018-06-11 CRAN (R 3.5.0)
#> rprojroot 1.3-2 2018-01-03 CRAN (R 3.5.0)
#> stats * 3.5.1 2018-07-05 local
#> stringi 1.2.4 2018-07-20 CRAN (R 3.5.0)
#> stringr 1.3.1 2018-05-10 CRAN (R 3.5.0)
#> tools 3.5.1 2018-07-05 local
#> utils * 3.5.1 2018-07-05 local
#> withr 2.1.2 2018-03-15 CRAN (R 3.5.0)
#> yaml 2.2.0 2018-07-25 CRAN (R 3.5.0) |
|
Looks like internet connections are still an issue. Are proxies a special case? |
|
This is low-priority for me, so I'm happy to review PRs, but I don't think it should block the 1.2 release. |
|
After some search about this issue, (as I can test behind a proxy), I think I found where the issue comes from. I reproduced the error in an environment without internet.
options(pkgdown.internet = FALSE)
getOption("pkgdown.internet")
#> [1] FALSE
callr::r(function(...){getOption("pkgdown.internet")})
#> NULLThe option needs to be pass through like others Line 315 in 9cbb675
Also, we can confirm that it works, otherwise, with I'll make a PR for that. However, related to internet connectivity, I think everything is not covered by the option. I found out that the internet connection can also be required by other package, and not only by packrat. This is the same for vignette. The PR I will propose don't covers this. |
|
@Dripdrop12 @JiaxiangBU you could try if with the PR, it is now correctly working for you remotes::install_github("r-lib/pkgdown#877") |
|
@cderv Hi, thanks for your contribution, but I still get another error. remotes::install_github("r-lib/pkgdown#877")
#> Skipping install of 'pkgdown' from a github remote, the SHA1 (012d46f5) has not changed since last install.
#> Use `force = TRUE` to force installation
library(pkgdown)
build_site(new_process = FALSE)
#> Error: Can't find DESCRIPTIONCreated on 2018-11-09 by the reprex package (v0.2.1) Session infodevtools::session_info()
#> Session info -------------------------------------------------------------
#> setting value
#> version R version 3.5.1 (2018-07-02)
#> system x86_64, darwin15.6.0
#> ui X11
#> language (EN)
#> collate zh_CN.UTF-8
#> tz Asia/Shanghai
#> date 2018-11-09
#> Packages -----------------------------------------------------------------
#> package * version date source
#> backports 1.1.2 2017-12-13 CRAN (R 3.5.0)
#> base * 3.5.1 2018-07-05 local
#> commonmark 1.6 2018-09-30 CRAN (R 3.5.0)
#> compiler 3.5.1 2018-07-05 local
#> curl 3.2 2018-03-28 CRAN (R 3.5.0)
#> datasets * 3.5.1 2018-07-05 local
#> devtools 1.13.6 2018-06-27 CRAN (R 3.5.0)
#> digest 0.6.18 2018-10-10 CRAN (R 3.5.0)
#> evaluate 0.12 2018-10-09 CRAN (R 3.5.0)
#> fs 1.2.6 2018-08-23 CRAN (R 3.5.0)
#> graphics * 3.5.1 2018-07-05 local
#> grDevices * 3.5.1 2018-07-05 local
#> htmltools 0.3.6 2017-04-28 CRAN (R 3.5.0)
#> knitr 1.20 2018-02-20 CRAN (R 3.5.0)
#> magrittr 1.5 2014-11-22 CRAN (R 3.5.0)
#> MASS 7.3-50 2018-04-30 CRAN (R 3.5.1)
#> memoise 1.1.0 2017-04-21 CRAN (R 3.5.0)
#> methods * 3.5.1 2018-07-05 local
#> pkgdown * 1.1.0.9000 2018-11-09 Github (cderv/pkgdown@012d46f)
#> R6 2.3.0 2018-10-04 CRAN (R 3.5.0)
#> Rcpp 0.12.19 2018-10-01 CRAN (R 3.5.0)
#> remotes 2.0.2 2018-10-30 CRAN (R 3.5.0)
#> rlang 0.3.0.1 2018-10-25 CRAN (R 3.5.0)
#> rmarkdown 1.10 2018-06-11 CRAN (R 3.5.0)
#> roxygen2 6.1.0 2018-07-27 CRAN (R 3.5.0)
#> rprojroot 1.3-2 2018-01-03 CRAN (R 3.5.0)
#> stats * 3.5.1 2018-07-05 local
#> stringi 1.2.4 2018-07-20 CRAN (R 3.5.0)
#> stringr 1.3.1 2018-05-10 CRAN (R 3.5.0)
#> tools 3.5.1 2018-07-05 local
#> utils * 3.5.1 2018-07-05 local
#> withr 2.1.2 2018-03-15 CRAN (R 3.5.0)
#> xml2 1.2.0 2018-01-24 CRAN (R 3.5.0)
#> yaml 2.2.0 2018-07-25 CRAN (R 3.5.0)When I add this arg
|
|
@cderv - that fixed it on my end. I have not messed around with the settings, but a standard |
I've added
http_proxyto .Renviron, butbuild_site()fails with the following error message:The text was updated successfully, but these errors were encountered: