Package: fs 2.1.0

Jeroen Ooms

fs: Cross-Platform File System Operations Based on 'libuv'

A cross-platform interface to file system operations, built on top of the 'libuv' C library.

Authors:Jim Hester [aut], Hadley Wickham [aut], Gábor Csárdi [aut], Jeroen Ooms [cre], libuv project contributors [cph], Joyent, Inc. and other Node contributors [cph], Posit Software, PBC [cph, fnd]

fs_2.1.0.tar.gz
fs_2.1.0.tar.gz(r-4.7-arm64)fs_2.1.0.tar.gz(r-4.7-x86_64)fs_2.1.0.tar.gz(r-4.6-arm64)fs_2.1.0.tar.gz(r-4.6-x86_64)
fs_2.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
fs/json (API)
NEWS

# Install 'fs' in R:
install.packages('fs', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/r-lib/fs/issues

Pkgdown/docs site:https://fs.r-lib.org

Uses libs:
  • libuv1– Asynchronous event notification library
  • c++– GNU Standard C++ Library v3

On CRAN:

Conda:

libuv1cpp

15.34 score 5.9k packages 18k scripts 1.8M downloads 20 mentions 69 exports 0 dependencies

Last updated from:8c92834eee. Checks:4 NOTE, 2 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-arm64NOTE150
linux-devel-x86_64NOTE130
source / vignettesOK251
linux-release-arm64NOTE134
linux-release-x86_64NOTE145
wasm-releaseOK106

Exports:as_fs_bytesas_fs_pathas_fs_permsdir_copydir_createdir_deletedir_existsdir_infodir_lsdir_mapdir_treedir_walkfile_accessfile_chmodfile_chownfile_copyfile_createfile_deletefile_existsfile_infofile_movefile_showfile_sizefile_tempfile_temp_popfile_temp_pushfile_touchfs_bytesfs_pathfs_permsgroup_idsis_absolute_pathis_diris_dir_emptyis_fileis_file_emptyis_linklink_copylink_createlink_deletelink_existslink_pathpathpath_abspath_commonpath_dirpath_expandpath_expand_rpath_extpath_ext_removepath_ext_setpath_ext<-path_filepath_filterpath_has_parentpath_homepath_home_rpath_joinpath_normpath_packagepath_realpath_relpath_sanitizepath_select_componentspath_splitpath_temppath_tidypath_wduser_ids

Dependencies:

Comparison of fs functions, base R, and shell commands

Rendered fromfunction-comparisons.Rmdusingknitr::rmarkdownon Jun 18 2026.

Last update: 2026-03-24
Started: 2019-03-19

Readme and manuals

Help Manual

Help pageTopics
Copy files, directories or linkscopy dir_copy file_copy link_copy
Create files, directories, or linkscreate dir_create file_create link_create
Delete files, directories, or linksdelete dir_delete file_delete link_delete
List filesdir_info dir_ls dir_map dir_walk
Print contents of directories in a tree-like formatdir_tree
Query for existence and access permissionsdir_exists file_access file_exists link_exists
Change file permissionsfile_chmod
Change owner or group of a filefile_chown
Query file metadatafile_info file_size
Move or rename filesfile_move
Open files or directoriesfile_show
Create names for temporary filesfile_temp file_temp_pop file_temp_push path_temp
Change file access and modification timesfile_touch
Human readable file sizesas_fs_bytes fs_bytes
File pathsas_fs_path fs_path
Create, modify and view file permissionsas_fs_perms fs_perms
Lookup Users and Groups on a systemgroup_ids id user_ids
Test if a path is an absolute pathis_absolute_path
Check if a directory is emptyis_dir_empty
Functions to test for file typesis_dir is_file is_file_empty is_link
Read the value of a symbolic linklink_path
Construct path to a file or directorypath path_wd
Finding the User Home Directorypath_expand path_expand_r path_home path_home_r
Manipulate file pathspath_dir path_ext path_ext<- path_ext_remove path_ext_set path_file
Filter pathspath_filter
Path computationspath_abs path_common path_has_parent path_join path_math path_norm path_real path_rel path_split
Construct a path to a location within an installed or development packagepath_package
Sanitize a filename by removing directory paths and invalid characterspath_sanitize
Select path components by their position/index.path_select_components
Tidy pathspath_tidy