Learn R Programming

test.assessr (version 2.1.2)

prepare_for_bioc_runit: Prepare a BioC/RUnit package for testing Detaches common BioC infrastructure packages (if attached) and load_all() the target package before RUnit tests. Also clears R_TESTS to avoid interference from the check harness.

Description

Prepare a BioC/RUnit package for testing Detaches common BioC infrastructure packages (if attached) and load_all() the target package before RUnit tests. Also clears R_TESTS to avoid interference from the check harness.

Usage

prepare_for_bioc_runit(pkg_name, pkg_source_path, detach_bioc_infra)

Arguments

pkg_name

Character. Package name.

pkg_source_path

Character. Path to package source.

detach_bioc_infra

Logical. If TRUE (default for BioC packages), detach IRanges, S4Vectors, BiocGenerics. Set to FALSE for RUnit-only packages.