Miscellaneous Functions by 'Yihui Xie'


[Up] [Top]

Documentation for package ‘xfun’ version 0.2

Help Pages

$.xfun_strict_list Strict lists
attr Obtain an attribute of an object without partial matching
compare_Rcheck Run 'R CMD check' on the reverse dependencies of a package
file_ext Manipulate filename extensions
file_string Read a text file and concatenate the lines by "\n"
gsub_dir Search and replace strings in files
gsub_ext Search and replace strings in files
gsub_file Search and replace strings in files
gsub_files Search and replace strings in files
install_dir Install a source package from a directory
in_dir Evaluate an expression under a specified working directory
isFALSE Test if an object is identical to 'FALSE'
is_linux Test for types of operating systems
is_macos Test for types of operating systems
is_unix Test for types of operating systems
is_windows Test for types of operating systems
json_vector A simple JSON serializer
loadable Attach or load packages, and automatically install missing packages if requested
native_encode Try to use the system native encoding to represent a character vector
normalize_path Normalize paths
optipng Run OptiPNG on all PNG files under a directory
parse_only Parse R code and do not keep the source
pkg_attach Attach or load packages, and automatically install missing packages if requested
pkg_attach2 Attach or load packages, and automatically install missing packages if requested
pkg_load Attach or load packages, and automatically install missing packages if requested
pkg_load2 Attach or load packages, and automatically install missing packages if requested
print.xfun_raw_string Print a character vector in its raw form
print.xfun_strict_list Strict lists
prose_index Find the indices of lines in Markdown that are prose (not code blocks)
protect_math Protect math expressions in pairs of backticks in Markdown
raw_string Print a character vector in its raw form
Rcmd Run the commands 'Rscript' and 'R CMD'
read_utf8 Read / write files encoded in UTF-8
rev_check Run 'R CMD check' on the reverse dependencies of a package
Rscript Run the commands 'Rscript' and 'R CMD'
rstudio_type Type a character vector into the RStudio source editor
same_path Test if two paths are the same after they are normalized
sans_ext Manipulate filename extensions
session_info An alternative to sessionInfo() to print session information
strict_list Strict lists
tojson A simple JSON serializer
try_silent Try to evaluate an expression silently
with_ext Manipulate filename extensions
write_utf8 Read / write files encoded in UTF-8