R version 4.5.0 RC (2025-04-04 r88126 ucrt) -- "How About a Twenty-Six" Copyright (C) 2025 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. > local({ + FILE.R <- tempfile(fileext = ".R") + on.exit(unlink(FILE.R), add = TRUE) + this.path:::.writeCode(file = FILE.R, { + if (requireNamespace("microbenchmark", quietly = TRUE)) { + print(this.path:::.faster_subsequent_times_test()) + } else cat("\n'package:microbenchmark' is not available :(\n") + }) + cat("\n") + this.path:::.Rscript(c("--default-packages=NULL", "--vanilla", FILE.R)) + + + cat("\n> source(FILE.R, chdir = FALSE)\n") + source(FILE.R, chdir = FALSE) + + + cat("\n> source(FILE.R, chdir = TRUE)\n") + source(FILE.R, chdir = TRUE) + }) "D:/RCompile/recent/R/bin/x64/Rscript.exe" "--default-packages=NULL" "--vanilla" "D:\temp\2025_04_10_06_25_16_20464\Rtmp29WeGH\file32fc4d204214.R" Unit: microseconds expr min lq mean median uq max neval first time 1454.602 1454.602 1454.60200 1454.602 1454.602 1454.602 1 subsequent 17.300 17.701 18.63503 17.901 18.251 73.100 100 > source(FILE.R, chdir = FALSE) Unit: microseconds expr min lq mean median uq max neval first time 717.001 717.001 717.00100 717.001 717.001 717.001 1 subsequent 16.501 17.101 17.80309 17.201 17.401 68.101 100 > source(FILE.R, chdir = TRUE) Unit: microseconds expr min lq mean median uq max neval first time 390.801 390.801 390.80100 390.8010 390.801 390.801 1 subsequent 17.502 20.102 21.44806 20.8515 21.651 67.601 100 > > proc.time() user system elapsed 0.39 0.07 0.90