Script name



examples/other/script_name.R
# This works using Rscript but not inside Rstudio and it installs the package on-the-fly
install.packages("scriptName")
library("scriptName")
current_filename()