remake
remake copied to clipboard
File paths and platform independence
In target_is_file() (parse_command.R line 240), I think
is_file <- grepl("/", x, fixed=TRUE)
should probably be replaced by
is_file <- grepl(.Platform$file.sep, x, fixed=TRUE)
to ensure platform independence. I have not checked for more occurrences of "/".
I'm not totally sure about that; "/" in a path works on both windows and OSX/Linux but "" works only on Windows; so a project that has "" in it will never work cleanly on a non-Windows system.
But on the other hand I can see your point...
My mistake, I had not actually tested this on Windows.