Skip to content

Commit

Permalink
autoload devtools if interactive
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreyhanson committed Jul 20, 2021
1 parent 9274f43 commit cad8cb5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .Rprofile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ options(shiny.autoload.r = FALSE)
# active renv package management
source("renv/activate.R")

# load default packages when R is run interactively
if (interactive()) {
library(devtools)
library(testthat)
}

# set default browser as google-chrome if possible
if (file.exists("/usr/bin/google-chrome")) {
options(browser = "/usr/bin/google-chrome")
Expand Down

0 comments on commit cad8cb5

Please sign in to comment.