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

Use an R option or env variable to turn on/off Connect content cache #660

Closed
wants to merge 14 commits into from

Conversation

juliasilge
Copy link
Member

Addresses #635

@juliasilge
Copy link
Member Author

This PR also does some code styling on board_rsconnect.R.

Comment on lines 561 to 565
if (use_cache()) {
cache <- read_cache(path)
cache[[key]] <- value
write_yaml(cache, path)
}
Copy link
Member Author

Choose a reason for hiding this comment

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

I am checking the cache option in both read_cache() and update_cache() even though the second calls the first so we avoid writing to the cache here

R/board_rsconnect.R Outdated Show resolved Hide resolved
@juliasilge juliasilge requested a review from machow October 24, 2022 20:18
@juliasilge juliasilge changed the title Use an R option to turn on/off Connect content cache Use an R option or env variable to turn on/off Connect content cache Oct 25, 2022
@juliasilge juliasilge marked this pull request as ready for review October 25, 2022 02:16
R/board_rsconnect.R Outdated Show resolved Hide resolved
Merge commit '4439a8f174f245305045b5da6f0ee7a5bce0472a'

#Conflicts:
#	.github/workflows/R-CMD-check.yaml
Copy link
Collaborator

@machow machow left a comment

Choose a reason for hiding this comment

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

LGTM!

@juliasilge
Copy link
Member Author

Closed by #667

@juliasilge juliasilge closed this Nov 1, 2022
@github-actions
Copy link

This pull request has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.

@github-actions github-actions bot locked and limited conversation to collaborators Nov 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants