From b002d5c429dabb4650800060f44d1f31b26fd650 Mon Sep 17 00:00:00 2001 From: Adam Forys Date: Tue, 3 Oct 2023 04:16:24 +0200 Subject: [PATCH] Update links and lintr --- .Rprofile | 26 +++++++++++--------------- .lintr | 1 - .lycheeignore | 2 +- 3 files changed, 12 insertions(+), 17 deletions(-) diff --git a/.Rprofile b/.Rprofile index 9df24088..6d0258b2 100644 --- a/.Rprofile +++ b/.Rprofile @@ -20,23 +20,19 @@ if (Sys.getenv("GITHUB_ACTIONS") != "") { Sys.setenv("RENV_CONFIG_SANDBOX_ENABLED" = FALSE) Sys.setenv("RENV_CONFIG_AUTO_SNAPSHOT" = FALSE) -# Do not load renv by default - -if (!(Sys.getenv("RENV_AUTOLOADER_ENABLED") %in% c("false", "FALSE"))) { - .renv_profile <- paste(R.version$major, substr(R.version$minor, 1, 1), sep = ".") - if (!file.exists("./renv/profile")) { - if (.renv_profile %in% c("4.1", "4.2", "4.3")) { - message("Set renv profile to `", .renv_profile, "`") - Sys.setenv("RENV_PROFILE" = .renv_profile) - } else { - message("This repository do not contains the renv profile for your R version.") - } +.renv_profile <- paste(R.version$major, substr(R.version$minor, 1, 1), sep = ".") +if (!file.exists("./renv/profile")) { + if (.renv_profile %in% c("4.1", "4.2", "4.3")) { + message("Set renv profile to `", .renv_profile, "`") + Sys.setenv("RENV_PROFILE" = .renv_profile) } else { - message( - "Using renv profile from `renv/profile` file.\n", - "The `", readLines("./renv/profile"), "` profile will be used." - ) + message("This repository do not contains the renv profile for your R version.") } +} else { + message( + "Using renv profile from `renv/profile` file.\n", + "The `", readLines("./renv/profile"), "` profile will be used." + ) } source("renv/activate.R") diff --git a/.lintr b/.lintr index 7335edbd..97388a63 100644 --- a/.lintr +++ b/.lintr @@ -13,7 +13,6 @@ linters: linters_with_defaults( expect_true_false_linter(), expect_type_linter(), fixed_regex_linter(), - implicit_assignment_linter(), implicit_integer_linter(), line_length_linter(120), missing_argument_linter(), diff --git a/.lycheeignore b/.lycheeignore index 522c308a..84046fb7 100644 --- a/.lycheeignore +++ b/.lycheeignore @@ -2,4 +2,4 @@ https://cran.r-project.org/package=sdtm.oak https://packagemanager.posit.co/cran/2023-03-15/ https://packagemanager.posit.co/cran/2023-04-20/ https://packagemanager.posit.co/cran/2022-03-10/ -https://packagemanager.posit.co/cran/latest/ +https://packagemanager.posit.co/cran/latest