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))

Try the RcppCNPy package in your browser

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

RcppCNPy documentation built on Nov. 27, 2023, 5:09 p.m.