Skip to content
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_news() trying cran.rstudio.com despite pkgdown.internet = FALSE #177

Open
py-b opened this issue Jan 25, 2023 · 3 comments
Open

build_news() trying cran.rstudio.com despite pkgdown.internet = FALSE #177

py-b opened this issue Jan 25, 2023 · 3 comments
Labels
feature a feature request or enhancement

Comments

@py-b
Copy link

py-b commented Jan 25, 2023

From what I understand build_news() searchs the documentation for a package on the internet for every name surrounded with curly braces on NEWS.md.

Should it be disabled if the option pkgdown.internet is set to FALSE?

The following code :

options(pkgdown.internet = FALSE)
pkgdown::build_site()

leadd to this message (I ran this code in an environment with no access to internet) :

-- Building news ---------------------------------------------------------------
---
Standard error:
Warning message:
In url(sprintf("%s/%s", cran, path), open = "rb") :
  URL 'https://cran.rstudio.com/web/packages/packages.rds': status was 'HTTP response code said error'

Removing the curly braces in NEWS.md makes this error disappear.

@maelle
Copy link
Contributor

maelle commented Jan 26, 2023

Oooh I see! This is a downlit issue (fear not it can be transferred but not by me 😸).

Maybe in downlit there could be some sort of switch / check that the internet is up.

@maelle
Copy link
Contributor

maelle commented Jan 26, 2023

Slightly related #162

@hadley hadley transferred this issue from r-lib/pkgdown Oct 30, 2023
@hadley
Copy link
Member

hadley commented Oct 30, 2023

Transferred!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature a feature request or enhancement
Projects
None yet
Development

No branches or pull requests

3 participants