R Under development (unstable) (2023-06-30 r84625 ucrt) -- "Unsuffered Consequences" Copyright (C) 2023 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > source("incl/start.R") [18:01:02.612] plan(): Setting new future strategy stack: [18:01:02.614] List of future strategies: [18:01:02.614] 1. sequential: [18:01:02.614] - args: function (..., envir = parent.frame()) [18:01:02.614] - tweaked: FALSE [18:01:02.614] - call: future::plan("sequential") [18:01:02.630] plan(): nbrOfWorkers() = 1 > > bquote_compile <- future:::bquote_compile > bquote_apply <- future:::bquote_apply > > message("*** bquote_compile() & bquote_apply() ...") *** bquote_compile() & bquote_apply() ... > > exprs <- list( + A = quote(.(a)), + B = quote(1 + .(a)), + C = quote(.(a) + 2), + D = quote({ .(a) }), + E = quote({ 1 + .(a) }), + F = quote(function(x = 42) { x + .(a) }), + G = quote({ 1 + .(a + 2) * c(1, 2, .(b)) }), + H = quote(.(a + 1)), + I = quote(.(a + 1) + .(a)), + J = quote(function(a=.(a)) NULL) + ) > > > for (kk in seq_along(exprs)) { + name <- names(exprs)[kk] + message(sprintf("Expression #%d (%s) of %d:", + kk, sQuote(name), length(exprs))) + expr <- exprs[[kk]] + print(expr) + + for (a in list(1, quote(A), quote(c()), NULL)) { + for (b in list(1, quote(B), quote(c()), NULL)) { + str(list(a = a, b = b)) + + truth <- tryCatch({ + eval(as.call(list(quote(base::bquote), expr))) + }, error = identity) + if (inherits(truth, "error")) next + + tmpl <- bquote_compile(expr, substitute = FALSE) + expr2 <- bquote_apply(tmpl) + print(expr2) + + if (!isTRUE(all.equal(expr2, truth))) { + str(list(name = name, a = a, b = b, truth = truth, expr2 = expr2)) + stopifnot(all.equal(expr2, truth)) + } + } + } + } Expression #1 ('A') of 10: .(a) List of 2 $ a: num 1 $ b: num 1 [1] 1 List of 2 $ a: num 1 $ b: symbol B [1] 1 List of 2 $ a: num 1 $ b: language c() [1] 1 List of 2 $ a: num 1 $ b: NULL [1] 1 List of 2 $ a: symbol A $ b: num 1 A List of 2 $ a: symbol A $ b: symbol B A List of 2 $ a: symbol A $ b: language c() A List of 2 $ a: symbol A $ b: NULL A List of 2 $ a: language c() $ b: num 1 c() List of 2 $ a: language c() $ b: symbol B c() List of 2 $ a: language c() $ b: language c() c() List of 2 $ a: language c() $ b: NULL c() List of 2 $ a: NULL $ b: num 1 NULL List of 2 $ a: NULL $ b: symbol B NULL List of 2 $ a: NULL $ b: language c() NULL List of 2 $ a: NULL $ b: NULL NULL Expression #2 ('B') of 10: 1 + .(a) List of 2 $ a: num 1 $ b: num 1 1 + 1 List of 2 $ a: num 1 $ b: symbol B 1 + 1 List of 2 $ a: num 1 $ b: language c() 1 + 1 List of 2 $ a: num 1 $ b: NULL 1 + 1 List of 2 $ a: symbol A $ b: num 1 1 + A List of 2 $ a: symbol A $ b: symbol B 1 + A List of 2 $ a: symbol A $ b: language c() 1 + A List of 2 $ a: symbol A $ b: NULL 1 + A List of 2 $ a: language c() $ b: num 1 1 + c() List of 2 $ a: language c() $ b: symbol B 1 + c() List of 2 $ a: language c() $ b: language c() 1 + c() List of 2 $ a: language c() $ b: NULL 1 + c() List of 2 $ a: NULL $ b: num 1 1 + NULL List of 2 $ a: NULL $ b: symbol B 1 + NULL List of 2 $ a: NULL $ b: language c() 1 + NULL List of 2 $ a: NULL $ b: NULL 1 + NULL Expression #3 ('C') of 10: .(a) + 2 List of 2 $ a: num 1 $ b: num 1 1 + 2 List of 2 $ a: num 1 $ b: symbol B 1 + 2 List of 2 $ a: num 1 $ b: language c() 1 + 2 List of 2 $ a: num 1 $ b: NULL 1 + 2 List of 2 $ a: symbol A $ b: num 1 A + 2 List of 2 $ a: symbol A $ b: symbol B A + 2 List of 2 $ a: symbol A $ b: language c() A + 2 List of 2 $ a: symbol A $ b: NULL A + 2 List of 2 $ a: language c() $ b: num 1 c() + 2 List of 2 $ a: language c() $ b: symbol B c() + 2 List of 2 $ a: language c() $ b: language c() c() + 2 List of 2 $ a: language c() $ b: NULL c() + 2 List of 2 $ a: NULL $ b: num 1 NULL + 2 List of 2 $ a: NULL $ b: symbol B NULL + 2 List of 2 $ a: NULL $ b: language c() NULL + 2 List of 2 $ a: NULL $ b: NULL NULL + 2 Expression #4 ('D') of 10: { .(a) } List of 2 $ a: num 1 $ b: num 1 { 1 } List of 2 $ a: num 1 $ b: symbol B { 1 } List of 2 $ a: num 1 $ b: language c() { 1 } List of 2 $ a: num 1 $ b: NULL { 1 } List of 2 $ a: symbol A $ b: num 1 { A } List of 2 $ a: symbol A $ b: symbol B { A } List of 2 $ a: symbol A $ b: language c() { A } List of 2 $ a: symbol A $ b: NULL { A } List of 2 $ a: language c() $ b: num 1 { c() } List of 2 $ a: language c() $ b: symbol B { c() } List of 2 $ a: language c() $ b: language c() { c() } List of 2 $ a: language c() $ b: NULL { c() } List of 2 $ a: NULL $ b: num 1 { NULL } List of 2 $ a: NULL $ b: symbol B { NULL } List of 2 $ a: NULL $ b: language c() { NULL } List of 2 $ a: NULL $ b: NULL { NULL } Expression #5 ('E') of 10: { 1 + .(a) } List of 2 $ a: num 1 $ b: num 1 { 1 + 1 } List of 2 $ a: num 1 $ b: symbol B { 1 + 1 } List of 2 $ a: num 1 $ b: language c() { 1 + 1 } List of 2 $ a: num 1 $ b: NULL { 1 + 1 } List of 2 $ a: symbol A $ b: num 1 { 1 + A } List of 2 $ a: symbol A $ b: symbol B { 1 + A } List of 2 $ a: symbol A $ b: language c() { 1 + A } List of 2 $ a: symbol A $ b: NULL { 1 + A } List of 2 $ a: language c() $ b: num 1 { 1 + c() } List of 2 $ a: language c() $ b: symbol B { 1 + c() } List of 2 $ a: language c() $ b: language c() { 1 + c() } List of 2 $ a: language c() $ b: NULL { 1 + c() } List of 2 $ a: NULL $ b: num 1 { 1 + NULL } List of 2 $ a: NULL $ b: symbol B { 1 + NULL } List of 2 $ a: NULL $ b: language c() { 1 + NULL } List of 2 $ a: NULL $ b: NULL { 1 + NULL } Expression #6 ('F') of 10: function(x = 42) { x + .(a) } List of 2 $ a: num 1 $ b: num 1 function(x = 42) { x + 1 } List of 2 $ a: num 1 $ b: symbol B function(x = 42) { x + 1 } List of 2 $ a: num 1 $ b: language c() function(x = 42) { x + 1 } List of 2 $ a: num 1 $ b: NULL function(x = 42) { x + 1 } List of 2 $ a: symbol A $ b: num 1 function(x = 42) { x + A } List of 2 $ a: symbol A $ b: symbol B function(x = 42) { x + A } List of 2 $ a: symbol A $ b: language c() function(x = 42) { x + A } List of 2 $ a: symbol A $ b: NULL function(x = 42) { x + A } List of 2 $ a: language c() $ b: num 1 function(x = 42) { x + c() } List of 2 $ a: language c() $ b: symbol B function(x = 42) { x + c() } List of 2 $ a: language c() $ b: language c() function(x = 42) { x + c() } List of 2 $ a: language c() $ b: NULL function(x = 42) { x + c() } List of 2 $ a: NULL $ b: num 1 function(x = 42) { x + NULL } List of 2 $ a: NULL $ b: symbol B function(x = 42) { x + NULL } List of 2 $ a: NULL $ b: language c() function(x = 42) { x + NULL } List of 2 $ a: NULL $ b: NULL function(x = 42) { x + NULL } Expression #7 ('G') of 10: { 1 + .(a + 2) * c(1, 2, .(b)) } List of 2 $ a: num 1 $ b: num 1 { 1 + 3 * c(1, 2, 1) } List of 2 $ a: num 1 $ b: symbol B { 1 + 3 * c(1, 2, B) } List of 2 $ a: num 1 $ b: language c() { 1 + 3 * c(1, 2, c()) } List of 2 $ a: num 1 $ b: NULL { 1 + 3 * c(1, 2, NULL) } List of 2 $ a: symbol A $ b: num 1 List of 2 $ a: symbol A $ b: symbol B List of 2 $ a: symbol A $ b: language c() List of 2 $ a: symbol A $ b: NULL List of 2 $ a: language c() $ b: num 1 List of 2 $ a: language c() $ b: symbol B List of 2 $ a: language c() $ b: language c() List of 2 $ a: language c() $ b: NULL List of 2 $ a: NULL $ b: num 1 { 1 + numeric(0) * c(1, 2, 1) } List of 2 $ a: NULL $ b: symbol B { 1 + numeric(0) * c(1, 2, B) } List of 2 $ a: NULL $ b: language c() { 1 + numeric(0) * c(1, 2, c()) } List of 2 $ a: NULL $ b: NULL { 1 + numeric(0) * c(1, 2, NULL) } Expression #8 ('H') of 10: .(a + 1) List of 2 $ a: num 1 $ b: num 1 [1] 2 List of 2 $ a: num 1 $ b: symbol B [1] 2 List of 2 $ a: num 1 $ b: language c() [1] 2 List of 2 $ a: num 1 $ b: NULL [1] 2 List of 2 $ a: symbol A $ b: num 1 List of 2 $ a: symbol A $ b: symbol B List of 2 $ a: symbol A $ b: language c() List of 2 $ a: symbol A $ b: NULL List of 2 $ a: language c() $ b: num 1 List of 2 $ a: language c() $ b: symbol B List of 2 $ a: language c() $ b: language c() List of 2 $ a: language c() $ b: NULL List of 2 $ a: NULL $ b: num 1 numeric(0) List of 2 $ a: NULL $ b: symbol B numeric(0) List of 2 $ a: NULL $ b: language c() numeric(0) List of 2 $ a: NULL $ b: NULL numeric(0) Expression #9 ('I') of 10: .(a + 1) + .(a) List of 2 $ a: num 1 $ b: num 1 2 + 1 List of 2 $ a: num 1 $ b: symbol B 2 + 1 List of 2 $ a: num 1 $ b: language c() 2 + 1 List of 2 $ a: num 1 $ b: NULL 2 + 1 List of 2 $ a: symbol A $ b: num 1 List of 2 $ a: symbol A $ b: symbol B List of 2 $ a: symbol A $ b: language c() List of 2 $ a: symbol A $ b: NULL List of 2 $ a: language c() $ b: num 1 List of 2 $ a: language c() $ b: symbol B List of 2 $ a: language c() $ b: language c() List of 2 $ a: language c() $ b: NULL List of 2 $ a: NULL $ b: num 1 numeric(0) + NULL List of 2 $ a: NULL $ b: symbol B numeric(0) + NULL List of 2 $ a: NULL $ b: language c() numeric(0) + NULL List of 2 $ a: NULL $ b: NULL numeric(0) + NULL Expression #10 ('J') of 10: function(a = .(a)) NULL List of 2 $ a: num 1 $ b: num 1 function(a = 1) NULL List of 2 $ a: num 1 $ b: symbol B function(a = 1) NULL List of 2 $ a: num 1 $ b: language c() function(a = 1) NULL List of 2 $ a: num 1 $ b: NULL function(a = 1) NULL List of 2 $ a: symbol A $ b: num 1 function(a = A) NULL List of 2 $ a: symbol A $ b: symbol B function(a = A) NULL List of 2 $ a: symbol A $ b: language c() function(a = A) NULL List of 2 $ a: symbol A $ b: NULL function(a = A) NULL List of 2 $ a: language c() $ b: num 1 function(a = c()) NULL List of 2 $ a: language c() $ b: symbol B function(a = c()) NULL List of 2 $ a: language c() $ b: language c() function(a = c()) NULL List of 2 $ a: language c() $ b: NULL function(a = c()) NULL List of 2 $ a: NULL $ b: num 1 function(a = NULL) NULL List of 2 $ a: NULL $ b: symbol B function(a = NULL) NULL List of 2 $ a: NULL $ b: language c() function(a = NULL) NULL List of 2 $ a: NULL $ b: NULL function(a = NULL) NULL > > message("*** bquote_compile() & bquote_apply() ... DONE") *** bquote_compile() & bquote_apply() ... DONE > > source("incl/end.R") [18:01:02.822] plan(): Setting new future strategy stack: [18:01:02.823] List of future strategies: [18:01:02.823] 1. FutureStrategy: [18:01:02.823] - args: function (..., envir = parent.frame()) [18:01:02.823] - tweaked: FALSE [18:01:02.823] - call: future::plan(oplan) [18:01:02.836] plan(): nbrOfWorkers() = 1 Failed to undo environment variables: - Expected environment variables: [n=201] '!ExitCode', 'ALLUSERSPROFILE', 'APPDATA', 'BIBINPUTS', 'BINDIR', 'BSTINPUTS', 'COMMONPROGRAMFILES', 'COMPUTERNAME', 'COMSPEC', 'CURL_CA_BUNDLE', 'CYGWIN', 'CommonProgramFiles(x86)', 'CommonProgramW6432', 'DriverData', 'HOME', 'HOMEDRIVE', 'HOMEPATH', 'JAGS_ROOT', 'JAVA_HOME', 'LANGUAGE', 'LC_COLLATE', 'LC_MONETARY', 'LC_TIME', 'LOCALAPPDATA', 'LOGONSERVER', 'LS_HOME', 'LS_LICENSE_PATH', 'MAKE', 'MAKEFLAGS', 'MAKELEVEL', 'MFLAGS', 'MSMPI_BENCHMARKS', 'MSMPI_BIN', 'MSYS2_ENV_CONV_EXCL', 'NUMBER_OF_PROCESSORS', 'OMP_THREAD_LIMIT', 'OS', 'PATH', 'PATHEXT', 'PROCESSOR_ARCHITECTURE', 'PROCESSOR_IDENTIFIER', 'PROCESSOR_LEVEL', 'PROCESSOR_REVISION', 'PROGRAMFILES', 'PROMPT', 'PSModulePath', 'PUBLIC', 'PWD', 'ProgramData', 'ProgramFiles(x86)', 'ProgramW6432', 'RETICULATE_AUTOCONFIGURE', 'RTOOLS43_HOME', 'R_ARCH', 'R_BROWSER', 'R_BZIPCMD', 'R_CMD', 'R_COMPILED_BY', 'R_CRAN_WEB', 'R_CUSTOM_TOOLS_PATH', 'R_CUSTOM_TOOLS_SOFT', 'R_DOC_DIR', 'R_ENVIRON_USER', 'R_GSCMD', 'R_GZIPCMD', 'R_HOME', 'R_INCLUDE_DIR', 'R_INSTALL_TAR', 'R_LIBS', 'R_LIBS_SITE', 'R_LIBS_USER', 'R_MAX_NUM_DLLS', 'R_OSTYPE', 'R_PAPERSIZE', 'R_PAPERSIZE_USER', 'R_PARALLELLY_MAKENODEPSOCK_AUTOKILL', 'R_PARALLELLY_MAKENODEPSOCK_CONNECTTIMEOUT', 'R_PARALLELLY_MAKENODEPSOCK_RSCRIPT_LABEL', 'R_PARALLELLY_MAKENODEPSOCK_SESSIONINFO_PKGS', 'R_PARALLELLY_MAKENODEPSOCK_TIMEOUT', 'R_PARALLELLY_RANDOM_PORTS', 'R_PARALLEL_PORT', 'R_RD4PDF', 'R_RTOOLS43_PATH', 'R_SCRIPT_LEGACY', 'R_SHARE_DIR', 'R_TESTS', 'R_UNZIPCMD', 'R_USER', 'R_VERSION', 'R_ZIPCMD', 'SED', 'SHLVL', 'SYSTEMDRIVE', 'SYSTEMROOT', 'TAR', 'TAR_OPTIONS', 'TEMP', 'TERM', 'TEXINPUTS', 'TMP', 'TMPDIR', 'USERDOMAIN', 'USERDOMAIN_ROAMINGPROFILE', 'USERNAME', 'USERPROFILE', 'WINDIR', '_', '_R_CHECK_AUTOCONF_', '_R_CHECK_BOGUS_RETURN_', '_R_CHECK_BROWSER_NONINTERACTIVE_', '_R_CHECK_BUILD_VIGNETTES_SEPARATELY_', '_R_CHECK_CODETOOLS_PROFILE_', '_R_CHECK_CODE_ASSIGN_TO_GLOBALENV_', '_R_CHECK_CODE_ATTACH_', '_R_CHECK_CODE_CLASS_IS_STRING_', '_R_CHECK_CODE_DATA_INTO_GLOBALENV_', '_R_CHECK_CODE_USAGE_VIA_NAMESPACES_', '_R_CHECK_CODE_USAGE_WITHOUT_LOADING_', '_R_CHECK_CODE_USAGE_WITH_ONLY_BASE_ATTACHED_', '_R_CHECK_CODOC_VARIABLES_IN_USAGES_', '_R_CHECK_COMPACT_DATA2_', '_R_CHECK_COMPILATION_FLAGS_', '_R_CHECK_CONNECTIONS_LEFT_OPEN_', '_R_CHECK_CRAN_INCOMING_', '_R_CHECK_CRAN_INCOMING_CHECK_FILE_URIS_', '_R_CHECK_CRAN_INCOMING_CHECK_URLS_IN_PARALLEL_', '_R_CHECK_CRAN_INCOMING_NOTE_GNU_MAKE_', '_R_CHECK_CRAN_INCOMING_REMOTE_', '_R_CHECK_CRAN_INCOMING_USE_ASPELL_', '_R_CHECK_DATALIST_', '_R_CHECK_DEPRECATED_DEFUNCT_', '_R_CHECK_DOC_SIZES2_', '_R_CHECK_DOT_FIRSTLIB_', '_R_CHECK_DOT_INTERNAL_', '_R_CHECK_EXAMPLE_TIMING_THRESHOLD_', '_R_CHECK_EXECUTABLES_', '_R_CHECK_EXECUTABLES_EXCLUSIONS_', '_R_CHECK_FF_CALLS_', '_R_CHECK_FF_DUP_', '_R_CHECK_FORCE_SUGGESTS_', '_R_CHECK_FUTURE_FILE_TIMESTAMPS_', '_R_CHECK_FUTURE_FILE_TIMESTAMPS_LEEWAY_', '_R_CHECK_HAVE_MYSQL_', '_R_CHECK_HAVE_ODBC_', '_R_CHECK_HAVE_PERL_', '_R_CHECK_HAVE_POSTGRES_', '_R_CHECK_INSTALL_DEPENDS_', '_R_CHECK_INTERNALS2_', '_R_CHECK_LENGTH_1_CONDITION_', '_R_CHECK_LICENSE_', '_R_CHECK_LIMIT_CORES_', '_R_CHECK_MATRIX_DATA_', '_R_CHECK_NATIVE_ROUTINE_REGISTRATION_', '_R_CHECK_NEWS_IN_PLAIN_TEXT_', '_R_CHECK_NO_RECOMMENDED_', '_R_CHECK_NO_STOP_ON_TEST_ERROR_', '_R_CHECK_ORPHANED_', '_R_CHECK_OVERWRITE_REGISTERED_S3_METHODS_', '_R_CHECK_PACKAGES_USED_IGNORE_UNUSED_IMPORTS_', '_R_CHECK_PACKAGES_USED_IN_TESTS_USE_SUBDIRS_', '_R_CHECK_PACKAGE_DATASETS_SUPPRESS_NOTES_', '_R_CHECK_PACKAGE_NAME_', '_R_CHECK_PKG_SIZES_', '_R_CHECK_PKG_SIZES_THRESHOLD_', '_R_CHECK_PRAGMAS_', '_R_CHECK_RD_EXAMPLES_T_AND_F_', '_R_CHECK_RD_LINE_WIDTHS_', '_R_CHECK_RD_MATH_RENDERING_', '_R_CHECK_RD_VALIDATE_RD2HTML_', '_R_CHECK_REPLACING_IMPORTS_', '_R_CHECK_R_DEPENDS_', '_R_CHECK_S3_METHODS_SHOW_POSSIBLE_ISSUES_', '_R_CHECK_SCREEN_DEVICE_', '_R_CHECK_SERIALIZATION_', '_R_CHECK_SHLIB_OPENMP_FLAGS_', '_R_CHECK_SRC_MINUS_W_IMPLICIT_', '_R_CHECK_SUBDIRS_NOCASE_', '_R_CHECK_SUBDIRS_STRICT_', '_R_CHECK_SUGGESTS_ONLY_', '_R_CHECK_SYSTEM_CLOCK_', '_R_CHECK_TESTS_NLINES_', '_R_CHECK_TEST_TIMING_', '_R_CHECK_TIMINGS_', '_R_CHECK_TOPLEVEL_FILES_', '_R_CHECK_UNDOC_USE_ALL_NAMES_', '_R_CHECK_UNSAFE_CALLS_', '_R_CHECK_URLS_SHOW_301_STATUS_', '_R_CHECK_VC_DIRS_', '_R_CHECK_VIGNETTES_NLINES_', '_R_CHECK_VIGNETTES_SKIP_RUN_MAYBE_', '_R_CHECK_VIGNETTE_TIMING_', '_R_CHECK_VIGNETTE_TITLES_', '_R_CHECK_WINDOWS_DEVICE_', '_R_CHECK_XREFS_USE_ALIASES_FROM_CRAN_', '_R_CLASS_MATRIX_ARRAY_', '_R_INSTALL_TIME_PATCHES_', '_R_S3_METHOD_LOOKUP_BASEENV_AFTER_GLOBALENV_', '_R_SHLIB_BUILD_OBJECTS_SYMBOL_TABLES_', 'maj.version', 'nextArg--timingsnextArg--install' - Environment variables still there: [n=0] - Environment variables missing: [n=1] 'MAKEFLAGS' Differences environment variable by environment variable: List of 3 $ name : chr "MAKEFLAGS" $ expected: 'Dlist' chr "" $ actual : 'Dlist' chr NA > > proc.time() user system elapsed 0.40 0.10 0.51