R Observatory
Search

Functions for Timing R Scripts, as Well as Implementations of "Stack" and "StackList" Structures

install.packages("tictoc")
CRAN checks, method
OKnotes on 2 of 13
CRAN 30-day downloads, method
14,739+1% up on the 30 days before, the better direction
Test coverage, method
90%of lines run by tests

Code execution timing functions 'tic' and 'toc' that can be nested. One can record all timings while a complex script is running, and examine the values later. It is also possible to instrument the timing calls with custom callbacks.

Full description

Code execution timing functions 'tic' and 'toc' that can be nested. One can record all timings while a complex script is running, and examine the values later. It is also possible to instrument the timing calls with custom callbacks. In addition, this package provides class 'Stack', implemented as a vector, and class 'StackList', which is a stack implemented as a list, both of which support operations 'push', 'pop', 'first_element', 'last_element' and 'clear'.

Maintainer
Sergei Izrailev
Latest release
18 Mar 2024
First release
17 Jun 2014

Compare with another package

More details
Releases
5
Needs compilation
No
Needs R
>= 2.15
Config/testthat/edition
3
RoxygenNote
7.2.3
Cite

Package

Run in R for the authors' preferred citation:

citation("tictoc")

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 tictoc version 1.2.1 [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.

No warnings or errors. 2 of 13 check platforms have notes.

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

    The unreleased R on Linux, x86_64, debian-clang

    Note

    Version checked
    1.2.1
    Time taken
    26 s

    CRAN incoming feasibility: Note

    Maintainer: ‘Sergei Izrailev <sizrailev@jabiruventures.com>’

    Full output

  • r-devel-linux-x86_64-debian-gcc

    The unreleased R on Linux, x86_64, debian-gcc

    Note

    Version checked
    1.2.1
    Time taken
    22 s

    CRAN incoming feasibility: Note

    Maintainer: ‘Sergei Izrailev <sizrailev@jabiruventures.com>’

    Full output

  • r-devel-linux-x86_64-fedora-clang

    The unreleased R on Linux, x86_64, fedora-clang

    OK

    Version checked
    1.2.1
    Time taken
    22 s
  • r-devel-linux-x86_64-fedora-gcc

    The unreleased R on Linux, x86_64, fedora-gcc

    OK

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

    The unreleased R on Windows, x86_64

    OK

    Version checked
    1.2.1
    Time taken
    85 s
  • r-oldrel-macos-arm64

    The previous release of R on macOS, arm64

    OK

    Version checked
    1.2.1
  • r-oldrel-macos-x86_64

    The previous release of R on macOS, x86_64

    OK

    Version checked
    1.2.1
    Time taken
    52 s
  • r-oldrel-windows-x86_64

    The previous release of R on Windows, x86_64

    OK

    Version checked
    1.2.1
    Time taken
    72 s
  • r-patched-linux-x86_64

    The patched release of R on Linux, x86_64

    OK

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

    The current release of R on Linux, x86_64

    OK

    Version checked
    1.2.1
    Time taken
    24 s
  • r-release-macos-arm64

    The current release of R on macOS, arm64

    OK

    Version checked
    1.2.1
    Time taken
    35 s
  • r-release-macos-x86_64

    The current release of R on macOS, x86_64

    OK

    Version checked
    1.2.1
    Time taken
    59 s
  • r-release-windows-x86_64

    The current release of R on Windows, x86_64

    OK

    Version checked
    1.2.1
    Time taken
    71 s
  • 2 Note
  • 11 OK
Check output (1)

CRAN incoming feasibility, Note on 2 platforms

Maintainer: ‘Sergei Izrailev <sizrailev@jabiruventures.com>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: person(given = "Sergei",
                    family = "Izrailev",
                    role = c("aut", "cre"),
                    email = "sizrailev@jabiruventures.com")
as necessary.

Check results on CRAN

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

CRAN rank

931 of 26,529

CRAN

14,739 downloads in the last 30 days

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

It is in the total. Take it out

r2u

1,202 downloads in the last 30 days

Rank
761 of 30,526
Change
+85.5% up on the 30 days before, the better direction

It is in the total. Take it out

autoCRAN

5 downloads in the last 30 days

Rank
10,712 of 29,212
Change
−66.7% down on the 30 days before, the worse direction

It is in the total. Take it out

conda-forge

1,135 downloads in the last 30 days

Rank
944 of 3,828
Change
−3.3% down on the 30 days before, the worse direction

It is in the total. Take it out

c2d4u, no longer updated

21 downloads in the last 30 days

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

It is in the total. Take it out

Over time

Compare downloads

Needs
1
Dependent packages
31
Suggested by
42
Needs (1)
  • methods
Installing it adds
0 packages, 0 KB of source
Of those, need compilation
0
Optional extras (1)
Dependent packages (31)
PackageTitleDownloads in 30 days
multilevLCAEstimates and Plots Single-Level and Multilevel Latent Class Models800
maestroOrchestration of Data Pipelines781
modeltime.resampleResampling Tools for Time Series Forecasting659
modeltime.ensembleEnsemble Algorithms for Time Series Forecasting with Modeltime638
SWMPrRetrieving, Organizing, and Analyzing Estuary Monitoring Data582
AIscreenRAI Screening Tools in R for Systematic Reviewing558
exdqlmExtended Dynamic Quantile Linear Models503
bayesmoveNon-Parametric Bayesian Analyses of Animal Movement487
ExPanDaRExplore Your Data Interactively465
CimpleGA Method to Identify Single CpG Sites for Classification and Deconvolution373
mbgModel-Based Geostatistics345
DecomposeREmpirical Mode Decomposition for Cyclostratigraphy343
NeuroDecodeRDecode Information from Neural Activity342
easyEWASPerform and Visualize EWAS Analysis331
EmiREvolutionary Minimizer for R313
simulateDCESimulate Data for Discrete Choice Experiments310
ovbsaSensitivity Analysis of Omitted Variable Bias308
spinebilInvestigating New Projection Pursuit Index Functions299
exhaustiveRaschItem Selection and Exhaustive Search for Rasch Models284
isobxrStable Isotope Box Modelling in R269
PiCInteractive Processing and Segmentation of Forest TLS Point-Cloud Data259
CIpostSelectConfidence Interval Post-Selection of Variable250
fssgParametric Survival Modeling in Bulk249
tsxtremeBayesian Modelling of Extremal Dependence in Time Series246
tetragonAutomatic Sequence Prediction by Expansion of the Distance Matrix231
spFSRFeature Selection and Ranking via Simultaneous Perturbation Stochastic Approximation227
spinnerAn Implementation of Graph Net Architecture Based on 'torch'219
LGCUImplementation of Learning Gamma CUSUM (Cumulative Sum) Control Charts205
janusOptimized Recommending System Based on 'tensorflow'205
pingersIdentify, Ping, and Log Internet Provider Connection Data205
RENRegularization Ensemble for Robust Portfolio Optimization187
Functions
45
Public exports
17
Lines of R code
738
Median complexity
1
Functions (45)
Size and composition

Lines by kind (1,514)

KindLinesShare
R code73849%
Tests43529%
Documentation34123%

Lines by language

LanguageLinesShare
R1,17378%
Rd34123%

Languages are counted from file extensions.

Files
25
R functions
45
Object systems
S3: 27 methods
Complexity
Median
1
Mean
1.33
Highest
5
Median lines per function
1
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
45
Calls
12
Unconnected
30
Groups
3
Growth (5 releases)
Total lines by release
949 on 17 Jun 20141,514 on 18 Mar 2024
Release changes

The tests ran and coverage was measured.

Lines run by tests
89.8%
Expressions run by tests
88.6%
Test cases
18
Exports named in tests
88.2%
Coverage by file (3)
Coverage run
Lines counted
167
Lines the tests ran
150
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
435
Test lines per line of code
0.59
Exports documented
100%
Arguments documented
100%
Return value documented
50%
Help pages with examples
33.3%
Examples run in checks
0%
Other documentation
README
Yes, 33 words
Release notes file
Yes
Help pages
3
Lines of documentation
341

jabiru / tictoc on github.com

Stars
10no change on 30 days ago
Forks
1
Open issues
0
Last commit
31 Mar 2024
Activity
Commits
66
Open pull requests
1
Tagged releases
0
Latest tagged release
–
Issues closed in
6 days (median)
Pull requests closed in
0 days (median)
Pull requests merged
100%
Created
15 Jun 2014
Licence file reads as
Apache-2.0
Development practices (4)
KindFound
Docs sourceGitHub Pages site last deployed 2017-12-24
CRAN release processcran-comments.md, CRAN-SUBMISSION
Lint, format, editorRStudio project

Method, repository practices

Across jabiru

R releases
  • On CRAN
  • Release
VersionReleasedR
1.2.1 current18 Mar 20244.3.3
1.223 Apr 20234.3.0
1.13 Sep 20224.2.1
1.0.119 Apr 20214.0.5
1.017 Jun 20143.1.0
Release notes (1.2.1)
  • Fixed a test that could (and did) fail when the R platform is overloaded.