xfun v0.7

0

Monthly downloads

0th

Percentile

Miscellaneous Functions by 'Yihui Xie'

Miscellaneous functions commonly used in other packages maintained by 'Yihui Xie'.

Readme

xfun

Build Status Coverage status Downloads from the RStudio CRAN mirror

This package contains several utility functions that I frequently use in other packages, and also miscellaneous functions that I use by myself from time to time. For more information, see https://yihui.name/xfun/.

Functions in xfun

Name Description
file_string Read a text file and concatenate the lines by '\n'
native_encode Try to use the system native encoding to represent a character vector
parse_only Parse R code and do not keep the source
is_windows Test for types of operating systems
strict_list Strict lists
is_ascii Check if a character vector consists of entirely ASCII characters
protect_math Protect math expressions in pairs of backticks in Markdown
session_info An alternative to sessionInfo() to print session information
isFALSE Test if an object is identical to FALSE
raw_string Print a character vector in its raw form
try_silent Try to evaluate an expression silently
upload_ftp Upload to an FTP server via curl
rstudio_type Type a character vector into the RStudio source editor
pkg_attach Attach or load packages, and automatically install missing packages if requested
prose_index Find the indices of lines in Markdown that are prose (not code blocks)
normalize_path Normalize paths
read_utf8 Read / write files encoded in UTF-8
rev_check Run R CMD check on the reverse dependencies of a package
tojson A simple JSON serializer
stringsAsStrings Set the global option options(stringsAsFactors = FALSE) inside a parent function and restore the option after the parent function exits
numbers_to_words Convert numbers to English words
same_path Test if two paths are the same after they are normalized
optipng Run OptiPNG on all PNG files under a directory
file_ext Manipulate filename extensions
download_file Try various methods to download a file
Rscript Run the commands Rscript and R CMD
attr Obtain an attribute of an object without partial matching
embed_file Embed a file, multiple files, or directory on an HTML page
install_dir Install a source package from a directory
gsub_file Search and replace strings in files
install_github An alias of remotes::install_github()
in_dir Evaluate an expression under a specified working directory
No Results!

Vignettes of xfun

Name
xfun.Rmd
No Results!

Last month downloads

Details

Type Package
License MIT + file LICENSE
URL https://github.com/yihui/xfun
BugReports https://github.com/yihui/xfun/issues
Encoding UTF-8
LazyData true
RoxygenNote 6.1.1
VignetteBuilder knitr
NeedsCompilation no
Packaged 2019-05-14 01:32:13 UTC; yihui
Repository CRAN
Date/Publication 2019-05-14 10:30:02 UTC

Include our badge in your README

[![Rdoc](http://www.rdocumentation.org/badges/version/xfun)](http://www.rdocumentation.org/packages/xfun)