-
Notifications
You must be signed in to change notification settings - Fork 987
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
medium- and long-term plans for tests/knitr.R #6566
Comments
Given the new interest for #3029, perhaps we do want to ask R developers to make Index: src/main/names.c
===================================================================
--- src/main/names.c (revision 87260)
+++ src/main/names.c (working copy)
@@ -104,7 +104,7 @@
{"(", do_paren, 0, 1, 1, {PP_PAREN, PREC_FN, 0}},
{".subset", do_subset_dflt, 1, 1, -1, {PP_FUNCALL, PREC_FN, 0}},
{".subset2", do_subset2_dflt,2, 1, -1, {PP_FUNCALL, PREC_FN, 0}},
-{"[", do_subset, 1, 0, -1, {PP_SUBSET, PREC_SUBSET, 0}},
+{"[", do_subset, 1, 200, -1, {PP_SUBSET, PREC_SUBSET, 0}},
{"[[", do_subset2, 2, 0, -1, {PP_SUBSET, PREC_SUBSET, 0}},
{"$", do_subset3, 3, 0, 2, {PP_DOLLAR, PREC_DOLLAR, 0}},
{"@", do_AT, 0, 0, 2, {PP_DOLLAR, PREC_DOLLAR, 0}},
Index: src/main/subset.c
===================================================================
--- src/main/subset.c (revision 87260)
+++ src/main/subset.c (working copy)
@@ -697,6 +697,7 @@
/* Method dispatch has failed, we now */
/* run the generic internal code. */
+ R_Visible = TRUE;
return do_subset_dflt(call, op, ans, rho);
}
Index: tests/reg-S4.Rout.save
===================================================================
--- tests/reg-S4.Rout.save (revision 87260)
+++ tests/reg-S4.Rout.save (working copy)
@@ -738,7 +738,6 @@
> x <- new("C1"); y <- new("C2")
> x[1, drop=FALSE]
drop in C1-[ : FALSE
-NULL
> y[1, drop=FALSE]
drop in C2-[ : FALSE
drop in C1-[ : FALSE |
side-eye to @tdhock and the NAU Monsoon cluster |
yes indeed we run all data table revdeps nightly on monsoon.
For each version of R we run R CMD check on each revdep, using two different versions of If I understand correctly, you want something different.
this seems like it would be substantially different from the existing revdep check code that we have, so probably would take quite a bit of dev time to get it working. we would have to mirror all CRAN https://cran.r-project.org/mirror-howto.html or bioc https://bioconductor.org/about/mirrors/mirror-how-to/ |
I think Brian Ripley does this sort of thing, you may want to ask him. (or R-devel email list) |
Thank you for the advice and detailed response, @tdhock! I can start a thread on R-devel if potentially removing
|
The R-devel thread is https://stat.ethz.ch/pipermail/r-devel/2024-October/083681.html |
AFAIAO modifying objects by reference is by definition a side-effect and therefore against the white book? |
|
patch-1.16.2
instead ofmaster
. Should we cherry-pick 9de2567 intomaster
too? See also: Master diverges from patch 1.16.2 #6587knitr
? For example,Haveknitr
setoptions(knitr.is.auto.printing = TRUE)
and detect that inprint.data.table
signalCondition(<please_dont_autoprint_me>)
fromprint.data.table
and haveknitr
detect thatOriginally posted by @yihui in fuse does not work for quote yihui/litedown#38 (comment)
See Solve the
knitr
auto-printing problem by registering a method forknit_print
#6589[
? The change is just one line, eval = 0 to eval = 200, but it does break R's owntests/reg-tests-2.Rout.save
, makingmatrix(5:-6, 3)[2, invisible(3)]
also invisible, and might break a lot of other stuff.The text was updated successfully, but these errors were encountered: