saveOutput Takes print function calls from function and returns output in desired format.

saveOutput(..., file = NULL, append = FALSE, type = c("output",
  "message"), split = FALSE)

Arguments

x:

first value for multiplication

y:

second value for multiplication

Value

the result of x multiplied by y

Details

This function takes every print call in the function called as a parameter and adds the argument of the print function to a character vector and returns the output in specified file format.

Examples

mult(2,3)
#> [1] 6