junyangq / snpnet

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

Update snpnet.R (file.path instead of paste0) #7

Closed yk-tanigawa closed 5 years ago

yk-tanigawa commented 5 years ago

I replaced paste0() with file.path() when constructing paths to files.

This is a better choice because user may not provide dir ending with /. i.e. file.path(dir, file) returns dir/file whereas paste0(dir, file) returns dirfile.

yk-tanigawa commented 5 years ago

Found a bug in the patch. I'll close this ticket.