Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add functions to install bookdown dependencies #94

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# Generated by roxygen2: do not edit by hand

export(dataedu_bookdown_dependencies)
export(dataedu_colors)
export(dataedu_packages)
export(install_bookdown_dependencies)
export(install_dataedu)
export(load.cabin)
export(scale_color_dataedu)
Expand Down
14 changes: 14 additions & 0 deletions R/data.R
Original file line number Diff line number Diff line change
Expand Up @@ -347,3 +347,17 @@ dataedu_packages <-
"tidyverse",
"tidytext"
)

#' All packages used to render the Data Science in Education Using R book (via {bookdown})
#'
#' @name dataedu_bookdown_dependencies
#' @format A character vector
#' @export dataedu_bookdown_dependencies

dataedu_bookdown_dependencies <-
c(
"RefManageR",
"png",
"bookdown",
"extrafont"
)
18 changes: 18 additions & 0 deletions R/install_dataedu.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,21 @@ install_dataedu <- function() {
Sys.sleep(2)
install.packages(dataedu_packages)
}

#' Mass installation of DSIEUR bookdown packages needed to render the book
#'
#' @description
#' `install_bookdown_dependencies()` installs the packages required as
#' dependencies used to render the bookdown book
#' (at https://github.com/data-edu/data-science-in-education)
#'
#' @usage
#' install_bookdown_dependencies()
#'
#' @rdname install_bookdown_dependencies
#' @export

install_bookdown_dependencies <- function() {
Sys.sleep(2)
install.packages(dataedu_bookdown_dependencies)
}
16 changes: 16 additions & 0 deletions man/dataedu_bookdown_dependencies.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions man/install_bookdown_dependencies.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.