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

revdep_check verifies integrity of already downloaded package files #930

Merged
merged 3 commits into from
Jan 21, 2016
Merged

revdep_check verifies integrity of already downloaded package files #930

merged 3 commits into from
Jan 21, 2016

Conversation

krlmlr
Copy link
Member

@krlmlr krlmlr commented Sep 16, 2015

to avoid surprises

@hadley
Copy link
Member

hadley commented Jan 12, 2016

Can you please merge/rebase?

@krlmlr
Copy link
Member Author

krlmlr commented Jan 13, 2016

Rebased.

}

is_source_pkg <- function(path, subdir = NULL) {
res <- try(source_pkg_info(path = path, subdir = subdir), silent = TRUE)
Copy link
Member

Choose a reason for hiding this comment

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

Could you eliminate use of try() here please?

Copy link
Member

Choose a reason for hiding this comment

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

Think you missed this comment

@krlmlr
Copy link
Member Author

krlmlr commented Jan 21, 2016

Rebased, now using tryCatch() instead of try().

tryCatch({
source_pkg_info(path = path, subdir = subdir)
TRUE
}, error = function(e) return(FALSE))
Copy link
Member

Choose a reason for hiding this comment

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

Don't need explicit return here, but it's not a blocker.

hadley added a commit that referenced this pull request Jan 21, 2016
revdep_check verifies integrity of already downloaded package files
@hadley hadley merged commit 49eb273 into r-lib:master Jan 21, 2016
@hadley
Copy link
Member

hadley commented Jan 21, 2016

Thanks!

@krlmlr krlmlr deleted the revdep-check-corrupted-tar-gz branch January 21, 2016 15:48
@krlmlr krlmlr restored the revdep-check-corrupted-tar-gz branch February 4, 2016 11:01
@krlmlr krlmlr deleted the revdep-check-corrupted-tar-gz branch October 6, 2016 07:23
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