tests/getParent.R

library("R.utils")

path <- "C:/Users/JohnDoe/"
parent0 <- dirname(path)
parent <- getParent(path)
stopifnot(identical(parent, parent0))

Try the R.utils package in your browser

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

R.utils documentation built on Nov. 18, 2023, 1:09 a.m.