Skip to content

Commit 654d4ce

Browse files
authored
Merge pull request #26 from decktools/egnor/add_renv
set up renv in this project
2 parents b4d0767 + ca3964c commit 654d4ce

File tree

7 files changed

+2432
-0
lines changed

7 files changed

+2432
-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+
.maybe_message <- if (interactive()) message else function(...) {invisible()}
2+
3+
.home_rprofile <- path.expand("~/.Rprofile")
4+
if (file.exists(.home_rprofile)) {
5+
.maybe_message("🏠 sentryR/.Rprofile: loading ~/.Rprofile")
6+
source(.home_rprofile)
7+
.maybe_message()
8+
}
9+
10+
if (!isNamespaceLoaded("renv")) {
11+
.maybe_message("🌱 sentryR/.Rprofile: activating `renv`")
12+
source("renv/activate.R")
13+
.maybe_message()
14+
}
15+
16+
invisible()

DESCRIPTION

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ Imports:
2525
tibble,
2626
uuid
2727
Suggests:
28+
bunny,
2829
covr,
2930
httptest,
3031
mockery,
3132
testthat (>= 2.1.0)
33+
Remotes:
34+
github::dmi3kno/bunny

0 commit comments

Comments
 (0)