R/utils.R

Defines functions .checkPath

## We would like to do this at the C++ level too, alas file-system operations
## are still very dependent on the operating system.  C++17 is going to help,
## but it is not yet widely enough available (and certainly not on CRAN anytime
## soon). Boost has functions in its filesystem module, but those require
## linking with the system and filesystem libraries so they cannot be used in
## header-only mode from BH

.checkPath <- function(filename) dir.exists(dirname(filename))
eddelbuettel/rcppcnpy documentation built on Jan. 4, 2024, 6:34 p.m.