R Under development (unstable) (2024-02-16 r85931 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 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. > library("R.rsp") R.rsp v0.46.0 successfully loaded. See ?R.rsp for help. > > path <- system.file("rsp_tests", package="R.rsp") > pathname <- file.path(path, "recursive.txt.rsp") > print(pathname) [1] "D:/RCompile/CRANincoming/R-devel/lib/R.rsp/rsp_tests/recursive.txt.rsp" > > R.utils::withTimeout({ + res <- try({ rcat(file=pathname) }) + stopifnot(inherits(res, "try-error")) + }, timeout=30L) Error in preprocess.RspDocument(doc, envir = envir, ..., verbose = less(verbose, : Too many nested RSP 'include' preprocessing directives. This indicates an endless recursive loop of including the same file over and over. This was detected while trying to include 'D:/RCompile/CRANincoming/R-devel/lib/R.rsp/rsp_tests/recursive.txt.rsp' (file='recursive.txt.rsp' with type='application/x-rsp') in RSP document 'D:/RCompile/CRANincoming/R-devel/lib/R.rsp/rsp_tests/recursive.txt.rsp'. > > proc.time() user system elapsed 1.20 0.35 1.54