R Observatory
Search
install.packages("filelock")
CRAN 30-day downloads, method
86,259−6% down on the 30 days before, the worse direction
Test coverage, method
96%of lines run by tests

Place an exclusive or shared lock on a file. It uses 'LockFile' on Windows and 'fcntl' locks on Unix-like systems.

Maintainer
Gábor Csárdi
Latest release
11 Dec 2023
First release
7 Feb 2018

Compare with another package

More details
Releases
3
Needs compilation
Yes
Needs R
>= 3.4
Config/Needs/website
tidyverse/tidytemplate
Config/testthat/edition
3
RoxygenNote
7.2.3
Subjects (1) Method, Subjects
Cite

Package

Run in R for the authors' preferred citation:

citation("filelock")
APA
Csárdi, G., & Posit Software, PBC. (2023). filelock: Portable File Locking (Version 1.0.3) [Computer software]. https://doi.org/10.32614/CRAN.package.filelock
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 filelock version 1.0.3 [Data set]. HJJB, LLC. Data release v2026-10-28. https://doi.org/10.5281/zenodo.21843040
About

From data release v2026-10-28, 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
    1.0.3
    Time taken
    29 s
  • r-devel-linux-x86_64-debian-gcc

    The unreleased R on Linux, x86_64, debian-gcc

    OK

    Version checked
    1.0.3
    Time taken
    24 s
  • r-devel-linux-x86_64-fedora-clang

    The unreleased R on Linux, x86_64, fedora-clang

    OK

    Version checked
    1.0.3
    Time taken
    19 s
  • r-devel-linux-x86_64-fedora-gcc

    The unreleased R on Linux, x86_64, fedora-gcc

    OK

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

    The unreleased R on Windows, x86_64

    OK

    Version checked
    1.0.3
    Time taken
    119 s
  • r-oldrel-macos-arm64

    The previous release of R on macOS, arm64

    OK

    Version checked
    1.0.3
  • r-oldrel-macos-x86_64

    The previous release of R on macOS, x86_64

    OK

    Version checked
    1.0.3
    Time taken
    27 s
  • r-oldrel-windows-x86_64

    The previous release of R on Windows, x86_64

    OK

    Version checked
    1.0.3
    Time taken
    58 s
  • r-patched-linux-x86_64

    The patched release of R on Linux, x86_64

    OK

    Version checked
    1.0.3
    Time taken
    20 s
  • r-release-linux-x86_64

    The current release of R on Linux, x86_64

    OK

    Version checked
    1.0.3
    Time taken
    20 s
  • r-release-macos-arm64

    The current release of R on macOS, arm64

    OK

    Version checked
    1.0.3
    Time taken
    10 s
  • r-release-macos-x86_64

    The current release of R on macOS, x86_64

    OK

    Version checked
    1.0.3
    Time taken
    30 s
  • r-release-windows-x86_64

    The current release of R on Windows, x86_64

    OK

    Version checked
    1.0.3
    Time taken
    56 s
  • 13 OK

Over time

No change since 5 Aug 2026

As a list (3)
ChangedWorst statusOKNotesWarningsErrors
5 Aug 2026OK13000
1 Aug 2026Note12100
10 Mar 2026OK14000

Since March 2026

Check results on CRAN

Total downloads in the last 30 days
133,717+12.1% up on the 30 days before, the better directionIt is the sum of 5 channels: CRAN, r2u, autoCRAN, conda-forge and c2d4u.

CRAN rank

365 of 26,530

CRAN

86,259 downloads in the last 30 days

Rank
365 of 26,530
Change
−6% down on the 30 days before, the worse direction

It is in the total. Take it out

r2u

16,396 downloads in the last 30 days

Rank
238 of 30,526
Change
+172% up on the 30 days before, the better direction

It is in the total. Take it out

autoCRAN

3 downloads in the last 30 days

Rank
17,776 of 29,212
Change
−62.5% down on the 30 days before, the worse direction

It is in the total. Take it out

conda-forge

31,002 downloads in the last 30 days

Rank
243 of 3,828
Change
+44.8% up on the 30 days before, the better direction

It is in the total. Take it out

c2d4u, no longer updated

57 downloads in the last 30 days

Rank
447 of 7,575
Change
−44.7% down on the 30 days before, the worse direction

It is in the total. Take it out

Over time

Compare downloads

Needs
0
Dependent packages
19
Suggested by
5
Optional extras (3)
Dependent packages (19)
PackageTitleDownloads in 30 days
keyringAccess the System Credential Store from R15,538
pkgcacheCache 'CRAN'-Like Metadata and R Packages6,613
doconvDocument Conversion to 'PDF', Thumbnails and Visual Testing5,171
pkgdependsPackage Dependency Resolution and Downloads4,844
parabarProgress Bar for Parallel Tasks2,284
txtqA Small Message Queue for Parallel Processes843
reproducibleEnhance Reproducibility of R Code812
shelterSupport for Secure API Key Management699
hfhubHugging Face Hub Interface581
commonsAI Agents for Data Analysis513
madratMay All Data be Reproducible and Transparent (MADRaT) *489
piecemealWrangle Large Simulation Studies370
topolowForce-Directed Euclidean Embedding of Dissimilarity Data367
gms'GAMS' Modularization Support Package365
togglrClient for the 'Toggl Track' API341
xegaExtended Evolutionary and Genetic Algorithms253
onetimeRun Code Only Once237
ggfigdoneManage & Modify 'ggplot' Figures using 'ggfigdone'208
cuda.mlR Interface for the RAPIDS cuML Suite of Libraries190
Functions
28
Public exports
2
Lines of R code
205
Median complexity
3
Functions (28)
Size and composition

Lines by kind (1,368)

KindLinesShare
R code20515%
Tests34525%
Documentation20515%
Compiled code61345%

Lines by language

LanguageLinesShare
C61345%
R55040%
Rd20515%

Languages are counted from file extensions.

Files
22
R functions
6
Compiled functions
22
Object systems
S3: 1 methods
Complexity
Median
3
Mean
3
Highest
4
Median lines per function
4.5
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
6
Calls
3
Unconnected
2
Groups
1
Growth (3 releases)
Total lines by release
1,332 on 7 Feb 20181,368 on 11 Dec 2023
Release changes

The tests ran and coverage was measured.

Lines run by tests
96%
Expressions run by tests
95.9%
Test cases
18
Exports named in tests
100%
Coverage by file (2)
Coverage run
Lines counted
24
Lines the tests ran
23
Tests passed
Yes
Measured with
covr 3.6.5 on R 4.6.1
Test suite
Has tests
Yes
Test frameworks
testthat
Test cases
18
Lines of tests
345
Test lines per line of code
1.68
Exports documented
100%
Arguments documented
100%
Return value documented
100%
Help pages with examples
0%
Other documentation
README
Yes, 986 words
Release notes file
Yes
Help pages
2
Lines of documentation
205

Funded by Posit Software, PBC

r-lib / filelock on github.com

Stars
44
Forks
10
Open issues
15
Last commit
24 Sep 2026
Activity
Commits
118
Open pull requests
3
Tagged releases
2
Latest tagged release
v1.0.3, 11 Dec 2023
In development
Default branch at 1.0.3.9000, ahead of CRAN 1.0.3 (checked 2026-10-25)
Issues closed in
0 days (median)
Pull requests closed in
0 days (median)
Pull requests merged
89%
Created
12 May 2017
Licence file reads as
–
Development practices (11)
KindFound
Continuous integrationGitHub Actions, R CMD check workflow
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Governance and communityCode of conduct
Docs sourceREADME.Rmd, pkgdown
GitHub Pages site last deployed 2026-09-24
The repository has a site deploy workflow
pkgdown site last built 2023-12-11
CoverageCoverage reporting (Codecov)
Reproducibility and dev environmentMakefile
Lint, format, editorAir, VS Code

Method, repository practices

Across r-lib

Tools

ToolFirst seenFoundCommits by it
GitHub Copilot19 Sep 2025Pull request: opened by its own account1
  • Pull request

Across r-lib

R releases
  • On CRAN
  • Release
VersionReleasedR
1.0.3 current11 Dec 20234.3.2
1.0.25 Oct 20183.5.0
1.0.17 Feb 20183.4.3
Release notes (1.0.3)
  • No user visible changes.