system.file {utils} | R Documentation |
Finds the full file names of files in packages etc.
system.file(fileName,
package = NULL,
mustWork = FALSE);
do not add extension suffix name for csv data set due to the reason of csv file extension suffix will be removed automatically in the progress of R compile the data file into package file.
this function maybe returns a clr stream object if the required file is inside an in-memory zip archive virtual filesystem.