Skip to content
Permalink
Browse files
#17 no pacman (#18)
* remove redundant dependencies

* another redundant dependency
  • Loading branch information
thisisnic committed Aug 6, 2021
1 parent 57f56e6 commit 3fff4ecdb6daf58652d02d2de591c398bf4f9c12
Showing 2 changed files with 10 additions and 4 deletions.
@@ -5,7 +5,6 @@ params:
---

```{r setup, include = FALSE}
testrmd::init()
library(arrow)
library(testthat)
library(dplyr)
@@ -18,9 +18,16 @@ get_installed_version <- function(pkg){
}

# install dependencies if not installed
if (!require("pacman")) install.packages("pacman")
pacman::p_load("testthat", "bookdown", "xfun", "knitr", "purrr", "remotes", "dplyr")
pacman::p_load_gh("rmflight/testrmd")
load_package <- function(pkg_name){
if (!require(pkg_name, character.only = TRUE)) {
install.packages(pkg_name)
}
library(pkg_name, character.only = TRUE)
}

dependencies <- c("testthat", "bookdown", "knitr", "purrr", "remotes", "dplyr")

lapply(dependencies, load_package)

# check version of Arrow installed, and install correct one
if (!inherits(build_version, "package_version") && build_version == "latest") {

0 comments on commit 3fff4ec

Please sign in to comment.