R Observatory
Search
install.packages("safetensors")
CRAN 30-day downloads, method
9,294+2.1% up on the 30 days before, the better direction
Test coverage, method
0%of lines run by tests

A file format for storing tensors that is secure (doesn't allow for code execution), fast and simple to implement. 'safetensors' also enables cross language and cross frameworks compatibility making it an ideal format for storing machine learning model weights.

Maintainer
Tomasz Kalinowski
Latest release
21 Aug 2026
First release
13 Jun 2023

Compare with another package

More details
Releases
6
Needs compilation
No
Config/testthat/edition
3
RoxygenNote
7.3.3
Collections (1) Method, Collections
  • mlverse, in the mlverse organization on GitHub
Subjects (1) Method, Subjects
Cite

Package

Run in R for the authors' preferred citation:

citation("safetensors")
APA
Kalinowski, T., Falbel, D., Fischer, S., & Posit, . (2026). safetensors: Safetensors File Format (Version 0.3.0) [Computer software]. https://doi.org/10.32614/CRAN.package.safetensors
About

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA
Balamuta, J. J. (2026). R Observatory: Metrics for safetensors version 0.3.0 [Data set]. HJJB, LLC. Data release v2026-10-27. https://doi.org/10.5281/zenodo.21843040
About

From data release v2026-10-27, which the citation names so these numbers can be found later.

All 13 check platforms pass.

  • r-devel-linux-x86_64-debian-clang

    The unreleased R on Linux, x86_64, debian-clang

    OK

    Version checked
    0.3.0
    Time taken
    29 s
  • r-devel-linux-x86_64-debian-gcc

    The unreleased R on Linux, x86_64, debian-gcc

    OK

    Version checked
    0.3.0
    Time taken
    23 s
  • r-devel-linux-x86_64-fedora-clang

    The unreleased R on Linux, x86_64, fedora-clang

    OK

    Version checked
    0.3.0
    Time taken
    23 s
  • r-devel-linux-x86_64-fedora-gcc

    The unreleased R on Linux, x86_64, fedora-gcc

    OK

    Version checked
    0.3.0
    Time taken
    18 s
  • r-devel-windows-x86_64

    The unreleased R on Windows, x86_64

    OK

    Version checked
    0.3.0
    Time taken
    53 s
  • r-oldrel-macos-arm64

    The previous release of R on macOS, arm64

    OK

    Version checked
    0.3.0
    Time taken
    18 s
  • r-oldrel-macos-x86_64

    The previous release of R on macOS, x86_64

    OK

    Version checked
    0.3.0
    Time taken
    62 s
  • r-oldrel-windows-x86_64

    The previous release of R on Windows, x86_64

    OK

    Version checked
    0.3.0
    Time taken
    49 s
  • r-patched-linux-x86_64

    The patched release of R on Linux, x86_64

    OK

    Version checked
    0.3.0
    Time taken
    24 s
  • r-release-linux-x86_64

    The current release of R on Linux, x86_64

    OK

    Version checked
    0.3.0
    Time taken
    25 s
  • r-release-macos-arm64

    The current release of R on macOS, arm64

    OK

    Version checked
    0.3.0
    Time taken
    13 s
  • r-release-macos-x86_64

    The current release of R on macOS, x86_64

    OK

    Version checked
    0.3.0
    Time taken
    53 s
  • r-release-windows-x86_64

    The current release of R on Windows, x86_64

    OK

    Version checked
    0.3.0
    Time taken
    49 s
  • 13 OK

Over time

No change since 4 Aug 2026

As a list (5)
ChangedWorst statusOKNotesWarningsErrors
4 Aug 2026OK13000
1 Aug 2026Note12100
9 Jun 2026OK13000
8 Jun 2026Error12001
10 Mar 2026OK14000

Since March 2026

Check results on CRAN

Total downloads in the last 30 days
10,075+4.4% up on the 30 days before, the better directionIt is the sum of 4 channels: CRAN, r2u, conda-forge and c2d4u. autoCRAN was counted over another window, so it is not added.

CRAN rank

1,177 of 26,529

CRAN

9,294 downloads in the last 30 days

Rank
1,177 of 26,529
Change
+2.1% up on the 30 days before, the better direction

It is in the total. Take it out

r2u

491 downloads in the last 30 days

Rank
1,170 of 30,526
Change
+26.9% up on the 30 days before, the better direction

It is in the total. Take it out

autoCRAN

0 downloads in the last 7 days

It is not added because it has no figure for the last 30 days.

conda-forge

284 downloads in the last 30 days

Rank
2,079 of 3,828
Change
+76.4% up on the 30 days before, the better direction

It is in the total. Take it out

c2d4u, no longer updated

6 downloads in the last 30 days

Rank
2,703 of 7,575
Change
−14.3% down on the 30 days before, the worse direction

It is in the total. Take it out

Over time

Compare downloads

Needs
4
Dependent packages
6
Suggested by
1
Needs (4)
Installing it adds
4 packages, 2.4 MB of source
Of those, need compilation
3
Optional extras (2)
Dependent packages (6)
PackageTitleDownloads in 30 days
torchTensors and Neural Networks with 'GPU' Acceleration43,721
bruleeHigh-Level Modeling Functions with 'torch'866
whisperNative R 'torch' Implementation of 'OpenAI' 'Whisper'266
chatterboxText-to-Speech Using the 'Chatterbox' Engine255
n3dSpeaker Diarization with 'Nemotron 3 Diarization' in R 'torch'218
Rhobots'BERTopic'-Style Topic Modeling Without 'Python'162
Functions
16
Public exports
7
Lines of R code
449
Median complexity
2
Functions (16)
Size and composition

Lines by kind (915)

KindLinesShare
R code44949%
Tests21724%
Documentation24927%

Lines by language

LanguageLinesShare
R65171%
Rd24927%
Markdown152%

Languages are counted from file extensions.

Files
21
R functions
16
Object systems
S3: 2 methods, R6: 1 classes
Complexity
Median
2
Mean
3.56
Highest
16
Median lines per function
13
About complexity

Cyclomatic complexity counts the independent paths through a function: 1 is a straight line, higher is harder to test. R functions only.

Call graph figures
R functions
16
Calls
10
Unconnected
3
Groups
3
Growth (6 releases)
Total lines by release
585 on 13 Jun 2023915 on 21 Aug 2026
Release changes

The tests ran and coverage was measured.

Lines run by tests
0%
Expressions run by tests
0%
Test cases
8
Exports named in tests
57.1%
Coverage by file (3)
Coverage run
Lines counted
214
Lines the tests ran
0
Tests passed
Yes
Measured with
covr 3.6.5 on R 4.6.1
Test suite
Has tests
Yes
Test frameworks
testthat
Test cases
8
Snapshot tests
1
Lines of tests
217
Test lines per line of code
0.48
Exports documented
100%
Arguments documented
100%
Return value documented
66.7%
Help pages with examples
50%
Examples run in checks
100%
Other documentation
README
Yes, 77 words
Release notes file
Yes
Help pages
6
Lines of documentation
249

mlverse / safetensors on github.com

Stars
12no change on 30 days ago
Forks
6
Open issues
0
Last commit
21 Aug 2026
Activity
Commits
56
Open pull requests
1
Tagged releases
6
Latest tagged release
v0.3.0, 21 Aug 2026
In development
Default branch at 0.3.0.9000, ahead of CRAN 0.3.0 (checked 2026-10-25)
Issues closed in
0 days (median)
Pull requests closed in
24 days (median)
Pull requests merged
100%
Created
30 May 2023
Licence file reads as
–
Development practices (8)
KindFound
Continuous integrationGitHub Actions, R CMD check workflow
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Docs sourceREADME.Rmd, pkgdown
GitHub Pages site last deployed 2026-08-21
The repository has a site deploy workflow
pkgdown site last built 2026-08-21
CRAN release processcran-comments.md
Lint, format, editorRStudio project

Method, repository practices

Across mlverse

Claude Codeat least 1 crediting itClaude CodeFirst seen 31 Jul 2026at least 1 crediting it
Claude Opus 4.5Claude Opus 4.531 Jul 20261 commit

Tools

ToolFirst seenCommits crediting it
Claude Code31 Jul 20261 at least

Models

ModelCommitsFirst commitLast commitCredit lines of
Claude Opus 4.5131 Jul 202631 Jul 2026Claude Code

Across mlverse

R releases
  • On CRAN
  • Release
VersionReleasedREvents
0.3.0 current21 Aug 20264.6.1
0.2.127 Apr 20264.6.0Maintainer: Tomasz Kalinowski
0.2.018 Aug 20254.5.1
0.1.212 Sep 20234.3.1
0.1.110 Jul 20234.3.1
0.1.013 Jun 20234.3.0
Release notes (0.3.0)
  • Added support for reading and writing F8_E4M3 and F8_E5M2 tensors with torch. (#13, @TroyHernandez)
  • Fixed reading and writing tensors with empty names. Because x[[""]] returns NULL for a named R list, access these tensors by position. (#10, @TroyHernandez)
  • Fixed reading and writing tensors at offsets larger than 2 GB. (#14, @TroyHernandez)
  • Fixed writing bfloat16 tensors. (#11, @TroyHernandez)