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

[WIP] Use raw strings (from R 4.0) #1220

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

Conversation

IndrajeetPatil
Copy link
Collaborator

No description provided.

@@ -29,7 +25,7 @@ remove_roxygen_mask <- function(text) {
#' #' @examples c(1, 2)
#' @keywords internal
remove_roxygen_header <- function(text) {
gsub("^[\\s\t]*@examples(If)?(\\s|\t)*", "", text, perl = TRUE)
gsub(R"(^[\s\t]*@examples(If)?(\s|\t)*)", "", text, perl = TRUE)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Was this a bug? That is, should this actually have been \\s|\\t?

Copy link
Collaborator

@lorenzwalthert lorenzwalthert Nov 25, 2024

Choose a reason for hiding this comment

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

\s stands for space, no? Or should be \\s to escape? It should capture spaces and tabs.

Copy link
Collaborator

Choose a reason for hiding this comment

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

@IndrajeetPatil are you confident in these topics?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Not really, but, if that's a question we need to ask, I think our testing suite needs an upgrade 😉

At any rate, I am going to convert this PR to a draft since I'd much rather work on updates needed to make the next CRAN release happen ASAP.

This comment was marked as outdated.

This comment was marked as outdated.

@IndrajeetPatil IndrajeetPatil marked this pull request as draft December 5, 2024 10:17
Copy link
Contributor

github-actions bot commented Dec 5, 2024

This is how benchmark results would change (along with a 95% confidence interval in relative change) if 3005c40 is merged into main:

  • ✔️cache_applying: 198ms -> 199ms [-2%, +3%]
  • ✔️cache_recording: 582ms -> 582ms [-0.97%, +1.25%]
  • ✔️without_cache: 1.14s -> 1.14s [-0.85%, +1.13%]

Further explanation regarding interpretation and methodology can be found in the documentation.

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