-
Notifications
You must be signed in to change notification settings - Fork 3
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
Tasks to support CRAN #55
Comments
While I do not attend the sprint I'm interested in helping the CRAN Team. 5 minutes ago someone asked if there was a CRAN Task View for Package Development. |
CRAN Task Views are a community initiative and moved to GitHub for better community engagement a couple of years ago, see: https://github.com/cran-task-views/ctv. |
Yes, sorry I just wanted to point out that people are somewhat lost on how to best comply with CRAN policy. (There is a new proposal) |
Hi! I would also like to help on this issue during the sprint :) |
I missed the issue version of this, but I'm interested in the first task |
Since room 2.48 is closed, me and Neeraj are at Breakout area 2.61. |
We created a small and simple patch on point 1 and submitted it to Uwe. Happy to add more details during the wrapup session! |
I recently saw a comment about a check and I thought that a similar, but simpler, comment to what we did yesterday could be added to R. Here is the patch: Index: src/library/tools/R/check.R
===================================================================
--- src/library/tools/R/check.R (revision 85037)
+++ src/library/tools/R/check.R (working copy)
@@ -1918,7 +1918,8 @@
wrapLog("Portable packages must use only ASCII",
"characters in their R code,\n",
"except perhaps in comments.\n",
- "Use \\uxxxx escapes for other characters.\n")
+ "Use \\uxxxx escapes for other characters.\n",
+ "Find them with tools::showNonASCIIfile(<filename>).\n")
} else resultLog(Log, "OK")
checkingLog(Log, "R files for syntax errors") I'll try to work now on checking the license with the templates provided by CRAN. I started looking into it and I found that the changes should happen in src/library/tools/R/QC.R in the I also found, what I think is a typo in setting the environmental variables for --as-cran. I didn't found a comment and it is documented to be set as warn for --as-cran: Index: src/library/tools/R/check.R
===================================================================
--- src/library/tools/R/check.R (revision 85037)
+++ src/library/tools/R/check.R (working copy)
@@ -6825,7 +6825,7 @@
Sys.setenv("_R_CHECK_NO_STOP_ON_TEST_ERROR_" = "TRUE")
Sys.setenv("_R_CHECK_PRAGMAS_" = "TRUE")
Sys.setenv("_R_CHECK_COMPILATION_FLAGS_" = "TRUE")
- Sys.setenv1("_R_CHECK_R_DEPENDS_", "warn")
+ Sys.setenv("_R_CHECK_R_DEPENDS_", "warn")
## until this is tested on Windows
Sys.setenv("_R_CHECK_R_ON_PATH_" = if(WINDOWS) "FALSE" else "TRUE")
Sys.setenv("_R_CHECK_PACKAGES_USED_IN_TESTS_USE_SUBDIRS_" = "TRUE") |
Thank you for the good idea and the patch. To your 2nd part: No, that is not a typo, and your change would (almost surely) introduce a bug by doing something slightly differently than intended. |
Thanks Martin for checking my first patch. Thanks, now I see it. I didn't check the context carefully enough, sorry.Now I see that prev <- Sys.getenv("_R_CHECK_SCREEN_DEVICE_", NA_character_)
if(is.na(prev)) Sys.setenv("_R_CHECK_SCREEN_DEVICE_" = "stop") But I don't understand enough to see if Getting back to the MIT, BSD2 and BSD3 and the template. Would it be fine if I propose some tests for external or internal function of tools? |
There are ideas for Another |
Discussed in #54
Originally posted by hturner August 24, 2023
Uwe Ligges has some ideas for small tasks that volunteers might do to support the CRAN Team. This might include tasks such as
The text was updated successfully, but these errors were encountered: