pik-piam / quitte

Bits and pieces of code to use with quitte-style data frames
0 stars 10 forks source link

fix warning in as.quitte when loading several files #52

Closed orichters closed 1 year ago

orichters commented 1 year ago

Running as.quitte(c("onefile.csv", "twofile.csv")) works, but raises a warning:

Warning message:
In if (file.exists(x) & grepl("\\.(mif|csv|xlsx)$", x)) return(as.quitte(read.quitte(x),  :
  the condition has length > 1 and only the first element will be used

After this PR, no warning is raised anymore.