# fs

> Cross-platform file system operations for R, built on libuv

Source: https://talira.ai/catalog/fs-4evgppnc
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / filesystem](https://talira.ai/categories/libraries/filesystem), [languages / r](https://talira.ai/categories/languages/r)
- Licence: MIT[^1][^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [R infrastructure (r-lib)](https://talira.ai/orgs/r-lib.md)

fs is an R package that gives a cross-platform, uniform interface to file system operations, built on top of the [libuv](https://talira.ai/catalog/libuv-tc4x9qtz.md) C library that Node.js uses. Its functions are grouped by prefix (`path_` for building and changing paths, `file_`, `dir_` and `link_` for files, directories and links), are all vectorised, always return paths as UTF-8, throw an error when an operation fails instead of a warning, and return tidy paths that always use `/`, coloured by file type and permissions.

## Links

- Website: https://fs.r-lib.org/
- GitHub: https://github.com/r-lib/fs
- Docs: https://fs.r-lib.org/reference/

## Problems it solves

- list, copy and delete files in R the same way on Windows and Linux
- my R script's file.copy fails silently and I miss it
- build file paths in R that work on every OS

## Features

- path_, file_, dir_ and link_ functions with one naming convention
- every function vectorised over paths
- UTF-8 paths on every operating system
- errors instead of warnings when an operation fails
- tidy paths, coloured by file type through LS_COLORS

## Trust

Overall: 0.36 out of 1.
Signals: maintenance 0.27, adoption 0.52, momentum 0.20, community 1.00, backing 0.30, extensibility 0.00.

- latest release v2.0.1 8 months ago
- 386 GitHub stars
- 375 contributors
- backed by R infrastructure (r-lib)

Warnings:

- last commit 7 months ago

## Related

- Based on [libuv](https://talira.ai/catalog/libuv-tc4x9qtz.md)

## Alternatives

- [here](https://talira.ai/catalog/here-ycca9mgx.md): Build file paths relative to your R project's root

## Sources

[^1]: https://github.com/r-lib/fs/blob/main/DESCRIPTION (checked 28 Nov 2026)
[^2]: https://github.com/r-lib/fs/blob/main/LICENSE.md (checked 28 Nov 2026)
