Home Comments Thread
New Thread

Three Useful Functions in Base R: `regexec()`, `strrep()`, and `append()` | /en/2023/10/three-functions/

giscus giscus 2023-10-12 06:20:53

Three Useful Functions in Base R: regexec(), strrep(), and append()

I just finished reviewing a pull request in the knitr repo that tries to improve the error message when it fails to parse YAML, and I feel three base R functions are worth mentioning to more R users. …

https://yihui.org/en/2023/10/three-functions/

2 Comments

YaoxiangLi YaoxiangLi 2024-05-23 20:30:47

Cool! I like this one: x = c("Failed to parse YAML: ", x, "\n", append(meta, cursor, row))

BTW, I can help on the stuffs if still needed
https://yihui.org/todo/#help-needed

👍 1
yihui yihui 2024-05-27 22:14:16

Thank you! Please feel free to work on anything in the list, although I haven't updated this TODO list for a long time, and there are some other things that I'm interested in getting done.

YaoxiangLi YaoxiangLi 2024-05-28 02:32:19

Understood. Please feel free to send me a more recent version or other tasks that you're interested in getting done.

Sign in to join the discussion

Sign in with GitHub