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

Design function dependencies #185

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Design function dependencies #185

wants to merge 3 commits into from

Conversation

Melkiades
Copy link
Collaborator

@Melkiades Melkiades commented Aug 10, 2023

Implements #184

This is very preliminary

@Melkiades Melkiades added the enhancement New feature or request label Aug 10, 2023
R/caching.R Outdated Show resolved Hide resolved
Comment on lines +7 to +13
# Helper function copied from fs internals
is_windows <- function() {
if (isTRUE(Sys.getenv("FS_IS_WINDOWS", "FALSE") == "TRUE")) {
return(TRUE)
}
tolower(Sys.info()[["sysname"]]) == "windows"
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This in theory could check if on windows to solve #177

@@ -118,7 +122,6 @@ checkout_repo <- function(repo_dir, repo_url, select_ref_rule, token_envvar = NU
git2r::branch_delete(local_branch)
rm(local_branch, remote_branch)

# todo: on.exit if unsuccessful
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

There is anyway an error handling, I think it is fine w/o

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

Successfully merging this pull request may close these issues.

1 participant