Closed yk-tanigawa closed 5 years ago
Replace paste0() with file.path when appropriate.
paste0()
file.path
This is a better choice because the user may not provide dir ending with /. i.e. file.path(dir, file) returns dir/file whereas paste0(dir, file) returns dirfile.
/
dir/file
dirfile
Replace
paste0()
withfile.path
when appropriate.This is a better choice because the user may not provide dir ending with
/
. i.e. file.path(dir, file) returnsdir/file
whereas paste0(dir, file) returnsdirfile
.