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 5. The other arithmetic operators are similarly implemented. A wide class of coding bugs is eliminated.
| Version: | 1.0 |
| Depends: | R (≥ 4.2.0) |
| Imports: | methods |
| Suggests: | testthat, knitr, rmarkdown, onion |
| Published: | 2025-07-28 |
| DOI: | 10.32614/CRAN.package.vfunc |
| Author: | Robin K. S. Hankin
|
| Maintainer: | Robin K. S. Hankin <hankin.robin at gmail.com> |
| License: | GPL-2 |
| NeedsCompilation: | no |
| Materials: | README |
| CRAN checks: | vfunc results |
| Reference manual: | vfunc.html , vfunc.pdf |
| Vignettes: |
The vfunc package (source, R code) |
| Package source: | vfunc_1.0.tar.gz |
| Windows binaries: | r-devel: vfunc_1.0.zip, r-release: vfunc_1.0.zip, r-oldrel: vfunc_1.0.zip |
| macOS binaries: | r-release (arm64): vfunc_1.0.tgz, r-oldrel (arm64): vfunc_1.0.tgz, r-release (x86_64): vfunc_1.0.tgz, r-oldrel (x86_64): vfunc_1.0.tgz |
Please use the canonical form https://CRAN.R-project.org/package=vfunc to link to this page.