Skip to content

parttime

0.1.2

Partial Datetime Handling

1packages depend
3.1Kdownloads / year
68.8%test coverage
13/13checks pass

Overview

About
Maintained by Doug KelkhoffFirst published 2022-11-043 releasesCRAN page ↗GitHub ↗

Datetimes and timestamps are invariably an imprecise notation, with any partial representation implying some amount of uncertainty. To handle this, 'parttime' provides classes for embedding partial missingness as a central part of its datetime classes. This central feature allows for more ergonomic use of datetimes for challenging datetime computation, including calculations of overlapping date ranges, imputations, and more thoughtful handling of ambiguity that arises from uncertain time zones. This package was developed first and foremost with pharmaceutical applications in mind, but aims to be agnostic to application to accommodate general use cases just as conveniently.

Install

Health

CRAN checks
13OK
Slowest check: 1.8 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.25
68.8%
Coverage · measured lines
100%
Documentation · exports
6
Dependencies · direct
Check history
  • OK2026-06-09
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-06-08
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 794 wordsVignettesNopkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
94%
Return-value docs
100%
References docs
4%

Downloads

3.1K
CRAN downloads in the past year
Rank #14,539 · ~8/day · ~257/mo
Daily download trend is not available in this view yet.
22530 days
76290 days
3.1K1 year
Compare downloads with other packages →
Also on97 r2u17 autocran27 c2d4u

Repository

Repository
18Stars
1Forks
8Open issues
0Open PRs
3Releases
64Commits
2Contributors
hacktoberfest
64 commits · Last activity 2024-01-26 · 0% stars, 30d

Stars over time

2024-08-24 · 172026-07-07 · 18

Repository practices

Upstream repositoryBeta

2 development-tooling and community-health practices detected across 2 families in the upstream repository

Checks run against github.com/dgkf/parttime on 2026-07-19.

Continuous integration (1)
GitHub Actions
Docs source (1)
README.Rmd
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
9 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.6
Imports (6)
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
1direct
0indirect

Code & Tests

Code Composition
R 4,218 (64%)Rd 2,387 (36%)
Code characteristics
Object systems
S388S4 class2S4 generic1S4 method9
Cyclomatic complexity
1.0 median / 11 max
Test cases
41 / 0.25 per code line

Test coverage

Line coverage

69%

Expression

67.0%

Tests / Examples

68.8% / 63% ex

Functions

186 40 exported

Complexity

1.6 avg / 11 max

Call network

186 nodes / 136 edges

Loading call graph…

Lowest coverage

186 functions
FunctionCycloCoverage
has_partial exp20%
has_partial_date exp10%
has_partial_time exp10%
impute_date exp10%
impute_date_max exp10%
impute_date_mid exp10%

People & History

People (2)
Maintainer (1)
Author, Maintainer
Authors (1)
Author, Maintainer
Contributors (1)
Contributor
Package Timeline

3 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 0.1.2Latest
    2024-01-25 · current release · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 0.1.1
    2023-03-08 · diff ↗
  • 0.1.0
    2022-11-04
  • R
    R 4.2.0 released · 2022-04-22

Package metadata

First published
2022-11-04
Total releases
3 / 4 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 3.6
Download size
59 KB
Installed size
not tracked yet
With dependencies
not tracked yet
Appears in task views
Report a problem with this page →