inst/doc/basic-usage.R

## ---- include = FALSE---------------------------------------------------------
knitr::opts_chunk$set(
  collapse = TRUE,
  warning = FALSE,
  message = FALSE,
  comment = "#>"
)
options(rmarkdown.html_vignette.check_title = FALSE)

## ---- eval=FALSE--------------------------------------------------------------
#  system.file("hellow", package = "pracpac")

## ---- eval=FALSE--------------------------------------------------------------
#  library(pracpac)
#  library(fs)
#  
#  ## specify the temp directory
#  tmp <- tempdir()
#  ## create a subdirectory of temp called "example"
#  dir_create(path = path(tmp, "example"))
#  ## copy the example hellow package to the temp directory
#  dir_copy(path = system.file("hellow", package = "pracpac"), new_path = path(tmp, "example"))

## ---- eval=FALSE--------------------------------------------------------------
#  use_docker(pkg_path = path(tmp, "example", "hellow"))

## ---- eval = FALSE------------------------------------------------------------
#  use_docker(pkg_path = path(tmp, "example", "hellow"), img_path = path(tmp, "example"))

## ---- eval=FALSE--------------------------------------------------------------
#  build_image(pkg_path = path(tmp, "example", "hellow"))

## ---- eval=FALSE--------------------------------------------------------------
#  system("docker images")

Try the pracpac package in your browser

Any scripts or data that you put into this service are public.

pracpac documentation built on July 9, 2023, 5:50 p.m.