Package: vfunc 1.0

vfunc: Manipulate Virtual Functions

If f <- function(x){x^2} and g <- function(x){x+1} it is a constant source of annoyance that "f+g" is not defined. Package 'vfunc' allows you to do this, and we have (f+g)(2) returning 6. The other arithmetic operators are similarly implemented. A wide class of coding bugs is eliminated.

Authors:Robin K. S. Hankin [aut, cre]

vfunc_1.0.tar.gz
vfunc_1.0.zip(r-4.7)vfunc_1.0.zip(r-4.6)vfunc_1.0.zip(r-4.5)
vfunc_1.0.tgz(r-4.6-any)vfunc_1.0.tgz(r-4.5-any)
vfunc_1.0.tar.gz(r-4.7-any)vfunc_1.0.tar.gz(r-4.6-any)
vfunc_1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
vfunc/json (API)

# Install 'vfunc' in R:
install.packages('vfunc', repos = c('https://robinhankin.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/robinhankin/vfunc/issues

Pkgdown/docs site:https://robinhankin.github.io

On CRAN:

Conda:

4.48 score 1 stars 151 downloads 38 exports 0 dependencies

Last updated from:d85916701a. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK140
source / vignettesOK173
linux-release-x86_64OK124
macos-release-arm64OK163
macos-oldrel-arm64OK99
windows-develOK95
windows-releaseOK104
windows-oldrelOK88
wasm-releaseOK128

Exports:AbsAcosAcoshas.functionas.vfAsinAsinhAtanAtanhCeilingCosCoshCospiCummaxCumminCumprodCumsumDigammaExpExpm1FloorGammaLgammaLogLog10Log1pLog2powSignSinSinhSinpiSqrtTanTanhTanpiTrigammaTrunc

Dependencies:

Function factorization with the vfunc package

Rendered fromvfunc.Rmdusingknitr::rmarkdownon May 19 2026.

Last update: 2026-03-17
Started: 2025-01-27

Readme and manuals

Help Manual

Help pageTopics
Manipulate Virtual Functionsvfunc-package vfunc
Coerce functions to a virtual function.as.vf as.vf,ANY-method as.vf,function-method
'Compare' methods for 'vf' objectsCompare,ANY,vf-method Compare,function,vf-method Compare,vf,ANY-method Compare,vf,function-method Compare,vf,vf-method Compare-methods
Math group generic functions in the 'vfunc' package: trig, exponential, log, etc.Abs abs,vf-method Acos acos,vf-method Acosh acosh,vf-method Asin asin,vf-method Asinh asinh,vf-method Atan atan,vf-method Atanh atanh,vf-method Ceiling ceiling,vf-method Cos cos,vf-method Cosh cosh,vf-method Cospi cospi,vf-method Cummax cummax,vf-method Cummin cummin,vf-method Cumprod cumprod,vf-method Cumsum cumsum,vf-method Digamma digamma,vf-method Exp exp,vf-method Expm1 expm1,vf-method Floor floor,vf-method Gamma gamma,vf-method Lgamma lgamma,vf-method Log log,vf-method Log10 log10,vf-method Log1p log1p,vf-method Log2 log2,vf-method Math Sign sign,vf-method Sin sin,vf-method Sinh sinh,vf-method Sinpi sinpi,vf-method Sqrt sqrt,vf-method Tan tan,vf-method Tanh tanh,vf-method Tanpi tanpi,vf-method Trigamma trigamma,vf-method Trunc trunc,vf-method
Methods for Function 'Math', 'Arith' in the 'vfunc' packageArith,ANY,vf-method Arith,function,vf-method Arith,vf,ANY-method Arith,vf,function-method Arith,vf,missing-method Arith,vf,vf-method Arith-methods Math,vf-method Math-methods
Iterated functions; functional powerspow power
Class '"vf"'as.function,vf-method as.vf,vf-method coerce,ANY,vf-method coerce,function,vf-method coerce,vf,function-method vf-class