test.R

.fname <- function()
{
    path <- commandArgs()[4]

    file <- strsplit(path, split = "=|\\.")
    print(file)

    return(file[[1]][[2]])
}

file <- .fname()
print(file)
leslie-arch/R documentation built on Dec. 21, 2021, 10:42 a.m.