You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Multiple scripts use list.files with pattern = "*.csv" to obtain all CSV file names in a folder. However, even when using R4.0.3, which was used to write the scripts, RStudio 2022.02.0 Build 443 returns NULL when using this pattern on Windows 10 Pro.
The issue appears due to an incompatibility between the regular expression engines for R versus RStudio. See here and here.
However, even once the incompatibility is fixed in an RStudio update, it also seems that pattern = "*.csv" is not optimal. Consider other patterns that may be better, such as pattern = "\\.csv$". This works on Windows 10 Pro but needs testing on Mac.
The text was updated successfully, but these errors were encountered:
Multiple scripts use
list.files
withpattern = "*.csv"
to obtain all CSV file names in a folder. However, even when using R4.0.3, which was used to write the scripts, RStudio 2022.02.0 Build 443 returnsNULL
when using this pattern on Windows 10 Pro.The issue appears due to an incompatibility between the regular expression engines for R versus RStudio. See here and here.
However, even once the incompatibility is fixed in an RStudio update, it also seems that
pattern = "*.csv"
is not optimal. Consider other patterns that may be better, such aspattern = "\\.csv$"
. This works on Windows 10 Pro but needs testing on Mac.The text was updated successfully, but these errors were encountered: