Convert R Functions to Scripts that are given arguments from the Console

function_to_Rscript(
  function_from_source = NULL,
  function_name = NULL,
  function_from_package = NULL,
  packages = c("tidyverse"),
  arguments,
  arguments_class,
  script_save_path
)

Arguments

function_from_source

the path of function that add function from source.

function_name

name of function to run that is defined in R source file.

function_from_package

name of function to run in script.

packages

A vector of package names that have been loaded into the script.

arguments

A vector of arguments are given from console.

arguments_class

A vector of input arguments types.

script_save_path

path of generated script.

Value