Skip to content

Conversation

@dbast
Copy link
Contributor

@dbast dbast commented Jan 18, 2021

Rename default extra cran url key to ensure it is not filtered out by the
repo URL deduplication code. It is thus always there as fallback in cases
where the cran url points to a server which is not available, outdated or
broken.

renv_scope_options(repos = c(CRAN = "https://broken_url"))

library <- renv_libpaths_default()
bootstrap(version = "1.0.0", library = library)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Version="1.0.0" is a local version and should be changed to a cran available version like 0.12.3 to actually download from cran. But that seems to be not possible during the tests?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any hints? Thanks

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

renv sets up its own local CRAN-like repository with "fake" versions of packages available, and those should be used during testing.

(Relying on CRAN itself means tests will fail intermittently if internet connectivity is spotty on the CRAN machines, which we do not want)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, will then remove the test case, as the changed code is not testable that way.

Anything else to change/do? Any comment to the actual changed code? Thanks

Rename default extra cran url key to ensure it is not filtered out by the
repo URL deduplication code. It is thus always there as fallback in cases
where the cran url points to a server which is not available, outdated or
broken.
@kevinushey kevinushey merged commit 4306309 into rstudio:master Jan 21, 2021
@kevinushey
Copy link
Collaborator

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants