Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

dir_without_..html

dir(), but without dot-prefix


Description

When using dir(), you can set full.names = FALSE, but then you can only pass a character vector of length one as path to not loose the information about where the files are. This function solves that case. It's needed when one wants to standardize paths to use set operations on them, i.e. when the user supplied input does not have a dot prefix. See 'Examples'.

Usage

dir_without_.(path, ...)

Arguments

path

A path.

...

Passed to base::dir().

See Also

set_and_assert_arg_paths

Examples

setdiff("./file.R", "file.R") # you want to standardize first.

styler

Non-Invasive Pretty Printing of R Code

v1.4.1
MIT + file LICENSE
Authors
Kirill Müller [aut], Lorenz Walthert [cre, aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.