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

prevents checkCRANStatus() package matrix from coercing #4

Merged
merged 1 commit into from
Oct 7, 2021

Conversation

jmbarbone
Copy link
Contributor

Small fix for those of us with a single package on CRAN

@@ -71,7 +71,7 @@ checkCRANStatus <- function(email, cache, cache.life=24 * 3600) {
vapply(regmatches(x, submatch), "[[", character(1L), 2)
})
res.mx <- t(gsub("<[^>]*>|^\\s+|\\s+$", "", res))
res.mx.2 <- res.mx[-1, ]
res.mx.2 <- res.mx[-1, , drop = FALSE]
Copy link
Owner

Choose a reason for hiding this comment

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

Yes, good catch -- thank you!

Copy link
Owner

Choose a reason for hiding this comment

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

Which is by the way 'me too' under the work email ;-)

> dang::checkCRANStatus("dirk@tiledb.com")
Error in `colnames<-`(`*tmp*`, value = res.mx[1, ]) : 
  attempt to set 'colnames' on an object with less than two dimensions
>

@eddelbuettel eddelbuettel merged commit 1f217ed into eddelbuettel:master Oct 7, 2021
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.

None yet

2 participants