Changeset: 4e8b023757a0 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/4e8b023757a0
Modified Files:
        monetdb5/extras/rapi/rapi.c
Branch: Jul2021
Log Message:

R 4.2.0 removed SET_INTERNAL.


diffs (16 lines):

diff --git a/monetdb5/extras/rapi/rapi.c b/monetdb5/extras/rapi/rapi.c
--- a/monetdb5/extras/rapi/rapi.c
+++ b/monetdb5/extras/rapi/rapi.c
@@ -473,10 +473,12 @@ static char *RAPIinitialize(void) {
        if ((e = RAPIinstalladdons()) != 0) {
                return e;
        }
+#if R_VERSION < R_Version(4,2,0)
        // patch R internals to disallow quit and system. Setting them to NULL 
produces an error.
        SET_INTERNAL(install("quit"), R_NilValue);
        // install.packages() uses system2 to call gcc etc., so we cannot 
disable it (perhaps store the pointer somewhere just for that?)
        //SET_INTERNAL(install("system"), R_NilValue);
+#endif
 
        rapiInitialized = true;
        return NULL;
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to