generated from dfe-analytical-services/shiny-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.Rprofile
26 lines (20 loc) · 804 Bytes
/
.Rprofile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# ---------------------------------------------------------
# This is the .Rprofile file
#
# Use it to include any functions you want to run before any other code is run.
# For example, using renv automatically sources its activate script to the .RProfile file
# This ensures that all renv checks on package versions happens before any code is run.
#
#
# ---------------------------------------------------------
cat("Sourcing .Rprofile.", fill = TRUE)
source("renv/activate.R")
renv::status()
# Run UI tests ------------------------------------------------------------
run_tests_locally <- function() {
library(shinytest2)
Sys.unsetenv("HTTP_PROXY")
test_app()
}
# Install commit-hooks locally
statusWriteCommit <- file.copy(".hooks/pre-commit.R", ".git/hooks/pre-commit", overwrite = TRUE)