R/tests.R

##
## this.path : Get Executing Script's Path
## Copyright (C) 2024   Iris Simmons
##


.faster_subsequent_times_test <- function ()
{
    first_time <- microbenchmark::microbenchmark(
        `first time` = .External2(.C_sys_path),
        times = 1
    )
    subsequent <- microbenchmark::microbenchmark(
        subsequent = .External2(.C_sys_path),
        times = 100
    )
    rbind(first_time, subsequent)
}

Try the this.path package in your browser

Any scripts or data that you put into this service are public.

this.path documentation built on April 10, 2026, 9:10 a.m.