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

medium- and long-term plans for tests/knitr.R #6566

Open
1 of 3 tasks
aitap opened this issue Oct 10, 2024 · 1 comment · May be fixed by #6589
Open
1 of 3 tasks

medium- and long-term plans for tests/knitr.R #6566

aitap opened this issue Oct 10, 2024 · 1 comment · May be fixed by #6589

Comments

@aitap
Copy link
Contributor

aitap commented Oct 10, 2024

@aitap
Copy link
Contributor Author

aitap commented Oct 22, 2024

Given the new interest for #3029, perhaps we do want to ask R developers to make .Primitive("[") stop forcing visibility? The complete change that passes LC_ALL=C.UTF-8 make check-devel is below, but this may or may not break a lot of CRAN/Bioconductor packages. (Do we have or know someone who has the infrastructure to run R CMD check on a lot of R packages with two different versions of R?)

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 

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 a pull request may close this issue.

1 participant