R/utils.R

## 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 May 15, 2019, 10:33 p.m.