Skip to content

Commit

Permalink
Update links and lintr
Browse files Browse the repository at this point in the history
  • Loading branch information
galachad committed Oct 3, 2023
1 parent 9b0554e commit b002d5c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 17 deletions.
26 changes: 11 additions & 15 deletions .Rprofile
Original file line number Diff line number Diff line change
Expand Up @@ -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")
1 change: 0 additions & 1 deletion .lintr
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
2 changes: 1 addition & 1 deletion .lycheeignore
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b002d5c

Please sign in to comment.