Skip to content

Instantly share code, notes, and snippets.

@CorradoLanera
Last active July 15, 2021 08:16
Show Gist options
  • Save CorradoLanera/d361798fab144e7841cf0ec1626ba37a to your computer and use it in GitHub Desktop.
Save CorradoLanera/d361798fab144e7841cf0ec1626ba37a to your computer and use it in GitHub Desktop.
My personalized R configuration files
linters: with_defaults(
T_and_F_symbol_linter,
todo_comment_linter,
object_name_linter(styles = "snake_case"),
object_length_linter,
extraction_operator_linter,
implicit_integer_linter,
absolute_path_linter,
nonportable_path_linter,
semicolon_terminator_linter,
unneeded_concatenation_linter,
undesirable_operator_linter
)
_R_CHECK_LENGTH_1_CONDITION_ = TRUE
_R_CHECK_LENGTH_1_LOGIC2_ = TRUE
options(
# Add warns for partial matching -------------------------------------
warnPartialMatchDollar = TRUE,
warnPartialMatchArgs = TRUE,
warnPartialMatchAttr = TRUE,
# Default personal informations --------------------------------------
usethis.name = "Corrado",
usethis.full_name = "Corrado Lanera",
usethis.description = list(
`Authors@R` = utils::person(
given = "Corrado",
family = "Lanera",
email = "corrado.lanera@gmail.com",
role = c("aut", "cre", "cph"),
comment = c(
ORCID = "0000-0002-0520-7428",
URL = "www.CorradoLanera.it"
)
),
License = "GPL-3",
Version = "0.0.0.9000"
),
# Default github protocol
usethis.protocol = "ssh"
)
if (interactive()) {
suppressWarnings(suppressPackageStartupMessages({
require(devtools)
require(testthat)
require(usethis)
}))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment