R Under development (unstable) (2024-03-14 r86117 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. > ## remove generated BayesX output files > testfiles <- c("mcmc.prg", "reml.prg", "step.prg", + "mcmc.R", "reml.R", "step.R", + "BayesX-tests.R", "data.raw") > files <- list.files() > files <- files[!files %in% testfiles] > files <- files[!grepl(".Rout", files)] > files <- files[!grepl(".save", files)] > file.remove(files) [1] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE [13] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE FALSE TRUE TRUE [25] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE [37] TRUE TRUE TRUE FALSE FALSE Warning messages: 1: In file.remove(files) : cannot remove file 'output', reason 'Permission denied' 2: In file.remove(files) : cannot remove file 'temp', reason 'Permission denied' 3: In file.remove(files) : cannot remove file 'zfileremoves.R', reason 'Permission denied' > > proc.time() user system elapsed 0.12 0.01 0.14