-
Notifications
You must be signed in to change notification settings - Fork 0
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
Cran compliance #14
Cran compliance #14
Conversation
box.lsp/tests/testthat/helper-utils.R Lines 19 to 44 in 39ddad5
CRAN might be flagging this because we are writing box.lsp/tests/testthat/helper-utils.R Line 65 in 39ddad5
|
R/utils.R
Outdated
) | ||
response <- substr(response, 1, 1) | ||
if (!(response == "Y" || response == "y")) { | ||
cli::cli_abort("`{file_path}` file creation/modification cancelled!") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wouldn't set this as an error. Info + early return?
R/utils.R
Outdated
#' use_box_lsp() | ||
#' } | ||
#' | ||
#' @export | ||
use_box_lsp <- function(file_path = ".Rprofile") { | ||
response <- readline( | ||
glue::glue("Would you like to create or modify the `{file_path}` file? (yes/No) ") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel being more specific with the action would be better for the UX. In case when .Rprofile exists, you could ask for modification and mention, that the lines will be added and the original part will be preserved. And in the case when there is no Rprofile, that it will be created.
|
||
## R CMD check results | ||
|
||
0 errors | 0 warnings | 1 note |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would 1 note
be an issue?
Have you read the Contributing Guidelines?
Address CRAN comments on package submission.
Description
Clear and concise description of what changed and why.
If necessary, include screenshots and/or a step-by-step guide on how to test the changes.
Definition of Done
R CMD check
, linter, unit tests, spelling)..Rd
files withroxygen2::roxygenise()
)