Two solutions:
1. Use the wrapper function is_existing_file in assertive.
2. Use standardize_path in pathological before you call file.exists.
On 27 August 2015 at 17:02, Paul Johnson wrote:
> I'm writing to ask if R Core would make file.exists more Windows
> tolerant when the argument has a
## delete trailing slashes
dts <- function(name) gsub("/$", "", name)
if(!file.exists(dts(any_name))) { ...
I don't think you want to delete the slash in "C:/" on Windows,
as "C:" is not a file and "C:/" is. normalizePath() does odd things
with "C:" as well.
Bill Dunlap
TIBCO Software