Generate ID strings | alnum_id |
Obtain an attribute of an object without partial matching | attr |
Get base R package names | base_pkgs |
Encode/decode data into/from base64 encoding. | base64_decode base64_encode |
Generate the Data URI for a file | base64_uri |
Start a background process | bg_process |
Find out broken packages and reinstall them | broken_packages |
Bump version numbers | bump_version |
Cache the execution of an expression in memory or on disk | cache_exec |
Cache the value of an R expression to an RDS file | cache_rds |
Submit check jobs to crandalf | crandalf_check crandalf_results |
Parse comma-separated chunk options | csv_options |
Evaluate an expression after forcing the decimal point to be a dot | decimal_dot |
Delete an empty directory | del_empty_dir |
Create a directory recursively by default | dir_create |
Test the existence of files and directories | dir_exists file_exists |
Divide chunk options from the code chunk body | divide_chunk |
Perform a task once in an R session | do_once |
Download a file from a URL and cache it on disk | download_cache |
Try various methods to download a file | download_file |
Embed a file, multiple files, or directory on an HTML page | embed_dir embed_file embed_files |
Retrieve a global option from both 'options()' and environment variables | env_option |
Find file paths that exist | existing_files |
Call 'on.exit()' in a parent function | exit_call |
Create a fenced block in Markdown | fenced_block fenced_div make_fence |
Manipulate filename extensions | file_ext sans_ext with_ext |
Rename files and directories | file_rename |
Read a text file and concatenate the lines by ''\n'' | file_string |
Find global/local variables in R code | find_globals find_locals |
Format numbers of bytes using a specified unit | format_bytes |
Get the relative path of a path in a project relative to the current working directory | from_root |
Get the tags of GitHub releases of a repository | github_releases |
Perform replacement with 'gsub()' on elements matched from 'grep()' | grep_sub |
Search and replace strings in files | gsub_dir gsub_ext gsub_file gsub_files |
Tools for HTML tags | html_escape html_tag html_value html_view |
Evaluate an expression under a specified working directory | in_dir |
Install a source package from a directory | install_dir |
An alias of 'remotes::install_github()' | install_github |
Test if paths are relative or absolute | is_abs_path is_rel_path |
Check if a character vector consists of entirely ASCII characters | is_ascii |
Test if a character vector consists of blank strings | is_blank |
Test if a path is a subpath of a dir | is_sub_path |
Test if a path is a web path | is_web_path |
Test for types of operating systems | is_arm64 is_linux is_macos is_unix is_windows |
Join multiple words into a single string | join_words |
Save objects to files and lazy-load them | lazy_load lazy_save |
Find a file or directory under a root directory | magic_path |
Mark some paths as directories | mark_dirs |
Generate a simple Markdown pipe table | md_table |
Calculate the MD5 checksums of R objects | md5 |
Get the MIME types of files | mime_type |
Generate a message with 'cat()' | msg_cat |
Try to use the system native encoding to represent a character vector | native_encode |
Create a local web application | new_app |
Convert package news to the Markdown format | news2md |
Normalize paths | normalize_path |
Convert numbers to English words | n2w numbers_to_words |
Run OptiPNG on all PNG files under a directory | optipng |
Parse R code and do not keep the source | parse_only |
Attach or load packages, and automatically install missing packages if requested | loadable pkg_attach pkg_attach2 pkg_available pkg_load pkg_load2 |
Generate BibTeX bibliography databases for R packages | pkg_bib |
Kill a process and (optionally) all its child processes | proc_kill |
Read a text file, process the text with a function, and write the text back | process_file sort_file |
Return the (possible) root directory of a project | proj_root root_rules |
Find the indices of lines in Markdown that are prose (not code blocks) | prose_index |
Protect math expressions in pairs of backticks in Markdown | protect_math |
Print a character vector in its raw form | print.xfun_raw_string raw_string |
Read all text files and concatenate their content | read_all |
Read all records of a binary file as a raw vector by default | read_bin |
Read / write files encoded in UTF-8 | append_unique append_utf8 read_utf8 write_utf8 |
Run R code and record the results | format.xfun_record_results print.xfun_record_results record |
Print methods for 'record()' | new_record record_print record_print.default record_print.record_asis |
Get the relative path of a path relative to a directory | relative_path |
Rename files with a sequential numeric prefix | rename_seq |
Get data from a REST API | github_api rest_api rest_api_raw |
Retry calling a function for a number of times | retry |
Run 'R CMD check' on the reverse dependencies of a package | compare_Rcheck rev_check |
Run the commands 'Rscript' and 'R CMD' | Rcmd Rscript |
Call a function in a new R session via 'Rscript()' | Rscript_call |
Type a character vector into the RStudio source editor | rstudio_type |
Test if two paths are the same after they are normalized | same_path |
An alternative to sessionInfo() to print session information | session_info |
Set environment variables | set_envvar |
Shrink images to a maximum width | shrink_images |
Split a character vector by line breaks | split_lines |
Split source lines into complete expressions | split_source |
Wrap character vectors | str_wrap |
Strict lists | $.xfun_strict_list as_strict_list print.xfun_strict_list strict_list |
Strip HTML tags | strip_html |
Submit a source package to CRAN | submit_cran |
Run 'system2()' and mark its character output as UTF-8 if appropriate | system3 |
Represent a (recursive) list with (nested) tabsets | tabset |
A simple YAML parser | taml_file taml_load |
Use the Tinify API to compress PNG and JPEG images | tinify tinify_dir |
A simple JSON serializer | json_vector tojson |
Turn the output of 'str()' into a tree diagram | tree |
Try an expression and see if it throws an error | try_error |
Try to evaluate an expression silently | try_silent |
Upload to an FTP server via 'curl' | upload_ftp upload_win_builder |
Upload an image to imgur.com | upload_imgur |
Test if a URL is accessible | url_accessible |
Extract filenames from a URLs | url_filename |
Check if the syntax of the code is valid | valid_syntax |
Partition the YAML metadata and the body in a document | yaml_body |
Read YAML data | yaml_load |