Skip to content

Commit 5a4b677

Browse files
committed
set up renv in this project
1 parent b4d0767 commit 5a4b677

File tree

6 files changed

+2119
-0
lines changed

6 files changed

+2119
-0
lines changed

.Rbuildignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
^renv$
2+
^renv\.lock$
13
^codecov\.yml$
24
^LICENSE\.md$
35
^.*\.Rproj$

.Rprofile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
message("🌱 sentryR/.Rprofile: activating `renv`")
2+
source("renv/activate.R")
3+
message()
4+
5+
.home_rprofile <- path.expand("~/.Rprofile")
6+
if (file.exists(.home_rprofile)) {
7+
message("🏠 sentryR/.Rprofile: loading ", .home_rprofile)
8+
source(.home_rprofile)
9+
message()
10+
}
11+
12+
message("▶️ sentryR/.Rprofile: all set")
13+
message("- use `devtools::load_all()` to load library")
14+
message("- use `devtools::test()` to run tests")
15+
16+
invisible()

0 commit comments

Comments
 (0)