getScriptName: Get Current Script Name or Basename of Output Directory

View source: R/CodeAndRoll2.R

getScriptNameR Documentation

Get Current Script Name or Basename of Output Directory

Description

This function attempts to retrieve the name of the currently opened script in the RStudio editor. If the script name cannot be obtained or if the rstudioapi package is not available, it returns the basename of the directory specified by OutDir.

Usage

getScriptName()

Value

A string containing the basename of the current script or the basename of OutDir if the script name is unavailable.


vertesy/CodeAndRoll2 documentation built on Nov. 20, 2024, 5:23 a.m.