Learn R Programming

deepSTRAPP (version 1.0.0)

is_dev_version: Check whether deepSTRAPP is a development version

Description

Detect whether the current deepSTRAPP installation corresponds to a development version (e.g., version sourced from GitHub), as opposed to a CRAN release.

The development versions include deepSTRAPP outputs as additional internal datasets to help produces examples and vignettes outputs. These additional datasets are removed from the CRAN releases because their size is not compatible with CRAN policies.

This function is only used to check if an example must be ran or a vignette chunk evaluated to produce output from data.

Usage

is_dev_version(pkg = "deepSTRAPP")

Value

Logical. TRUE if running a development version.

Arguments

pkg

Character string. Name of the R package for which the version type is inspected. Default is "deepSTRAPP".

Author

Maël Doré

Examples

Run this code
# Check the current deepSTRAPP installation is a development version
is_dev_version(pkg = "deepSTRAPP")

Run the code above in your browser using DataLab