R Under development (unstable) (2024-07-28 r86931 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. > message("*** Checks ...") *** Checks ... > > startup::check(fix = FALSE) > startup::check(all = TRUE, fix = FALSE) > > startup:::check_rprofile_eof() > startup:::check_rprofile_eof(all = TRUE) > > startup:::check_rprofile_update_packages() NULL > startup:::check_rprofile_update_packages(all = TRUE) NULL > > startup:::check_options() > > oopts <- options(encoding = "C") > res <- tryCatch({ + startup:::check_options() + }, warning = identity) > if (!interactive()) stopifnot(inherits(res, "simpleWarning")) > options(oopts) > > message("*** Checks - test files ...") *** Checks - test files ... > > path <- system.file("Rprofile.d,checks", package = "startup") > path_tmp <- tempdir() > file.copy(path, path_tmp, recursive = TRUE, overwrite = TRUE) [1] TRUE > > files <- startup:::list_d_files(path_tmp) > print(files) [1] "D:\\temp\\Rtmp4sA11z/Rprofile.d,checks/an_error.R" [2] "D:\\temp\\Rtmp4sA11z/Rprofile.d,checks/change_of_encoding.R" [3] "D:\\temp\\Rtmp4sA11z/Rprofile.d,checks/missing_newline.R" [4] "D:\\temp\\Rtmp4sA11z/Rprofile.d,checks/update_packages.R" > > res <- tryCatch({ + startup:::check_rprofile_eof(files = files, fix = FALSE) + }, error = identity) > stopifnot(inherits(res, "simpleError")) > > res <- tryCatch({ + startup:::check_rprofile_eof(files = files) + }, warning = identity) Backed up R startup file: 'D:\temp\Rtmp4sA11z/Rprofile.d,checks/missing_newline.R' (338 bytes) -> 'D:\temp\Rtmp4sA11z/Rprofile.d,checks/missing_newline.R.bak.20240729-233539' (338 bytes) > stopifnot(inherits(res, "simpleWarning")) > > res <- tryCatch({ + startup:::check_rprofile_update_packages(files = files) + }, error = identity) > stopifnot(inherits(res, "simpleError")) > > > message("*** Checks - test files ... DONE") *** Checks - test files ... DONE > > message("*** File name capitalization ...") *** File name capitalization ... > > for (what in c("Renviron", "Rprofile")) { + file <- sprintf(".%s", what) + pathname <- file.path(tempdir(), file) + cat("dummy", file = pathname) + res <- startup:::warn_file_capitalization(pathname, what) + stopifnot(isTRUE(res)) + file.remove(pathname) + + file <- toupper(file) + pathname <- file.path(tempdir(), file) + cat("dummy", file = pathname) + res <- startup:::warn_file_capitalization(pathname, what) + stopifnot(!isTRUE(res)) + + res <- tryCatch({ + startup:::warn_file_capitalization(pathname, what) + }, warning = identity) + stopifnot(inherits(res, "warning")) + file.remove(pathname) + } Warning messages: 1: startup::startup(): Detected non-standard, platform-dependent letter casing of an 'Renviron' file. Please rename file to use the officially supported casing: 'D:/temp/Rtmp4sA11z/.RENVIRON' -> 'D:/temp/Rtmp4sA11z/.Renviron' 2: startup::startup(): Detected non-standard, platform-dependent letter casing of an 'Rprofile' file. Please rename file to use the officially supported casing: 'D:/temp/Rtmp4sA11z/.RPROFILE' -> 'D:/temp/Rtmp4sA11z/.Rprofile' > > message("*** File name capitalization ... DONE") *** File name capitalization ... DONE > > message("*** Checks ... DONE") *** Checks ... DONE > > proc.time() user system elapsed 0.14 0.04 0.18