junyangq / snpnet

snpnet: Fast and scalable lasso/elastic-net solver for large SNP data
32 stars 15 forks source link

Update snpnet.R #14

Closed yk-tanigawa closed 5 years ago

yk-tanigawa commented 5 years ago

Replace paste0() with file.path when appropriate.

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.