xfun
xfun copied to clipboard
Miscellaneous R functions
This PR is from #66, and only for future consideration (when we do not need to support R < 3.5.0). Please do not merge yet.
I used `xfun::embed_file` with a several MB large file. While the link works perfectly in Firefox, I get a `Network error` when trying to download the same file in Chrome....
xfun::numbers_to_words(1500780) [1] "one million, five hundred thousand, seven hundred eighty" I guess it should be [1] "one million, five hundred thousand, seven hundred **_and_** eighty" also xfun::numbers_to_words(1500780.95) Error in xfun::numbers_to_words(1500780.95)...
Below is the minimal reproducible example: ``` --- title: "Latex Cases" output: bookdown::pdf_document2: default xaringan::moon_reader: lib_dir: libs nature: highlightStyle: github highlightLines: true countIncrementalSlides: false --- \begin{equation} \begin{cases} \Delta_{0}=0,3\Delta_{1}+0,3\Delta_{0} \\ \Delta_{1}-5=0,2\Delta_{1}-0,2\Delta_{0}...
Coverage is 0% at the moment 😞 https://codecov.io/github/yihui/xfun?branch=master
Very simple change, so that is not necessary to pass a trailing slash (`/`) to the `dir` argument of `cache_rds`. This is specially useful when the using `file.path()` itself for...