File size: 1,317 Bytes
efd3676 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | ---
title: "0-dev_setup"
output: html_notebook
---
This file contains various helpers for the development environment.
Use this to load the development environment and frequently run reset_copasi() to load code changes.
```{r setup}
knitr::opts_knit$set(root.dir = normalizePath(".."))
Sys.setenv(COPASI_LIB_PATH = normalizePath(file.path("..", "libs", .Platform$r_arch, paste0("COPASI", .Platform$dynlib.ext))))
# reset_copasi(), ls_corc(pattern), inspect(object)
source("dev_tools.R", echo = FALSE)
current_example = 3L
```
# Document the Package
```{r, include=FALSE}
devtools::document()
pkgdown::build_reference()
```
# Check the Package
```{r, include=FALSE}
devtools::test()
```
```{r, include=FALSE}
devtools::check(check_dir = "../CoRC.Rcheck")
```
# Build the Package
```{r, include=FALSE}
devtools::build()
```
# Install the Package
```{r, include=FALSE}
devtools::install()
```
```{r, include=FALSE}
install.packages(".", repos = NULL, type = "source", INSTALL_opts = "--no-multiarch --with-keep.source --install-tests")
```
# Load the Package
```{r, include=FALSE}
library(CoRC)
```
# Load Development Environment
```{r, include=FALSE}
library(assertthat)
library(purrr)
library(ggplot2)
reset_copasi()
```
# Reset COPASI
```{r, include=FALSE}
reset_copasi()
```
# Tests
```{r}
```
|