File tree Expand file tree Collapse file tree 3 files changed +321
-8
lines changed Expand file tree Collapse file tree 3 files changed +321
-8
lines changed Original file line number Diff line number Diff line change 1
- message(" 🌱 sentryR/.Rprofile: activating `renv`" )
2
- source(" renv/activate.R" )
3
- message()
1
+ .maybe_message <- if (interactive()) message else function (... ) {invisible ()}
4
2
5
3
.home_rprofile <- path.expand(" ~/.Rprofile" )
6
4
if (file.exists(.home_rprofile )) {
7
- message (" 🏠 sentryR/.Rprofile: loading " , .home_rprofile )
5
+ .maybe_message (" 🏠 sentryR/.Rprofile: loading ~/.Rprofile " )
8
6
source(.home_rprofile )
9
- message ()
7
+ .maybe_message ()
10
8
}
11
9
12
- message(" ▶️ sentryR/.Rprofile: all set" )
13
- message(" - use `devtools::load_all()` to load library" )
14
- message(" - use `devtools::test()` to run tests" )
10
+ if (! isNamespaceLoaded(" renv" )) {
11
+ .maybe_message(" 🌱 sentryR/.Rprofile: activating `renv`" )
12
+ source(" renv/activate.R" )
13
+ .maybe_message()
14
+ }
15
15
16
16
invisible ()
Original file line number Diff line number Diff line change @@ -25,7 +25,10 @@ Imports:
25
25
tibble,
26
26
uuid
27
27
Suggests:
28
+ bunny,
28
29
covr,
29
30
httptest,
30
31
mockery,
31
32
testthat (>= 2.1.0)
33
+ Remotes:
34
+ github::dmi3kno/bunny
You can’t perform that action at this time.
0 commit comments