error when using "replacements" argument in clean_source
When I run the sample code from page 6 https://cran.r-project.org/web/packages/rock/vignettes/introduction_to_rock.pdf:
rock::clean_source(" - Something said by one speaker - Something said by another speaker ", replacements=list(c("\n-\s", "\n---turn-of-talk---\n")))`
[Line breaks are not preserved in the above quote, and I could not figure out how to get them to be]
I get the response:
Error in rock::clean_source("\n- Something said by one speaker\n- Something said by another speaker\n", : argument 2 matches multiple formal arguments