Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

list.files matches #1

Open
briatte opened this issue Jul 26, 2021 · 0 comments
Open

list.files matches #1

briatte opened this issue Jul 26, 2021 · 0 comments
Labels
question Further information is requested

Comments

@briatte
Copy link
Collaborator

briatte commented Jul 26, 2021

J'ai retrouvé ça dans un vieux script de brouillon :

x <- c("DATA/2015/isgc2015_abstracts.csv" ,
"DATA/2015/isgc2015_authors-abstracts.csv" ,
"DATA/2017/isgc2017_abstracts.csv"        ,
"DATA/2017/isgc2017_authors_abstracts.csv" ,
"DATA/2019/form_abstracts.csv" )

list.files("DATA", full.names = TRUE, recursive = TRUE) %>%
  grep("^(?!.*authors).*abstracts\\.csv$", ., value = TRUE, perl = TRUE)

As-tu résolu le problème ?

Aujourd'hui, j'utilise systématiquement fs::dir_ls au lieu de list.files.

@briatte briatte added the question Further information is requested label Jul 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant