?file.path indicates that this function is designed to be faster than paste, so I am concerned that writing
dirname <- "/path/to/myfile/"
file.path(dirname, paste(output, ".csv", sep = ""))
is missing the point.
Is it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
file.pathhas some special functions for dealing with stuff inside R’s library, as well as working across platforms.For the purposes of writing
csvfiles, saving plots aspngsand such, I believe thatpasteis a better option because it bypasses the “middleman”. Usingpastewithinfile.pathis not really a problem (if you need the functionality offile.path), because any speed differences will be undetectable.