Toot

Written by Ken Butler on 2024-11-15 at 04:50

Hence, #rstats and the fs package, which I had never used before. I set dir_base to be the folder I wanted to work in, and then

dir_info(dir_base) %>% 
  filter(str_detect(path, ".txt$")) %>% 
  filter(str_detect(path, "T")) %>% 
  pull(path) -> txtfiles
txtfiles

dir_info returns info about all the files in the folder you give it. Then I used stringr to select the files I wanted to rename.

=> More informations about this toot | View the thread | More toots from nxskok@mastodon.cloud

Mentions

Tags

=> View rstats tag

Proxy Information
Original URL
gemini://mastogem.picasoft.net/toot/113485166934521188
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
231.582155 milliseconds
Gemini-to-HTML Time
0.643267 milliseconds

This content has been proxied by September (3851b).