Operators and functions provided by base R sometimes lack some features found in other programming languages, such as the ability to concatenate strings using + or to repeat strings using *. This package aims at providing such functionality without breaking existing code, i.e., only statements, that would throw errors in pure base R are patched.
# devtools::install_github("toscm/toscmask")
install.packages("toscmask", repos = c('https://toscm.r-universe.dev', 'https://cloud.r-project.org'))
library("toscmask")
## Produces message:
## Attaching package: 'toscmask'
## The following objects are masked from 'package:base': *, +
cat("a" + "b") # prints ab
cat("a" + 1) # prints a1
cat(1 + "b") # prints 1b
cat("-" * 10) # prints ----------
cat(10 * "-") # prints ----------