File: zzz.R

package info (click to toggle)
r-cran-paramhelpers 1.14.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 992 kB
  • sloc: ansic: 102; sh: 13; makefile: 2
file content (24 lines) | stat: -rw-r--r-- 1,110 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#' @import checkmate
#' @import methods
#' @import stats
#' @importFrom fastmatch %fin% fmatch
#' @rawNamespace import(BBmisc, except = isFALSE)
NULL

.onLoad = function(libname, pkgname) {
  backports::import(pkgname)
}

ph = new.env(parent = emptyenv())
ph$type.strings.integer = c("integer", "integervector")
ph$type.strings.double = c("numeric", "numericvector")
ph$type.strings.character = c("character", "charactervector")
ph$type.strings.logical = c("logical", "logicalvector")
ph$type.strings.discrete = c("discrete", "discretevector")
ph$type.strings.numeric = c(ph$type.strings.integer, ph$type.strings.double)
ph$type.strings = c(ph$type.strings.integer, ph$type.strings.double, ph$type.strings.character, ph$type.strings.logical, ph$type.strings.discrete, "untyped", "function")

ph$convert.param.types.from = c("numericvector", "integervector", "discrete", "discretevector", "logicalvector", "charactervector")
ph$convert.to.ctypes = c("numeric", "integer", "factor", "logical", "character")
ph$value.component.names = c("numericvector", "integervector", "logicalvector")
globalVariables(".data")