Skip to content

activatr

Utilities for Parsing and Plotting Activities

v0.2.1 · Jul 27, 2024 · MIT + file LICENSE

Description

This contains helpful functions for parsing, managing, plotting, and visualizing activities, most often from GPX (GPS Exchange Format) files recorded by GPS devices. It allows easy parsing of the source files into standard R data formats, along with functions to compute derived data for the activity, and to plot the activity in a variety of ways.

Downloads

CRAN

354

Last 30 days

12427th

864

Last 90 days

3.6K

Last year

Trend: +69.4% (30d vs prior 30d)

r2u CRAN

38

Last 30 days

81

Last 90 days

201

Last year

Trend: +111.1% (30d vs prior 30d)

autoCRAN

19

Last 7 days

64

Last 30 days

3

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Changelog

Full NEWS →

v0.2.1

# activatr 0.2.1

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 8, 2026
ERROR r-devel-linux-x86_64-debian-gcc

package dependencies

Package required but not available: ‘ggmap’

See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Line coverage

100%

Expression

100.0%

Tests / Examples

100.0% / 61% ex

Functions

20 7 exported

Complexity

2.9 avg / 10 max

Call network

20 nodes / 16 edges

Loading call graph…

Lowest coverage

20 functions
FunctionCycloCoverage
get_ggmap_from_df exp1100%
localize_to_time_zone exp3100%
mutate_with_speed exp4100%
pace_formatter exp1100%
parse_gpx exp9100%
parse_tcx exp9100%

Code

Structure

Lines of code

2,497

Files

51

Compiled share

0%

Has compiled src

No

Language breakdown

R 1,014 (40.6%)Tests 726 (29.1%)Docs 474 (19%)Vignettes 283 (11.3%)

API

Exported functions

7

Internal functions

13

Recent export changes

v0.1.0+7 get_ggmap_from_df, localize_to_time_zone, mutate_with_speed +4 more

Testing & CI

Has tests

Yes

Test-to-code ratio

0.72

testthat edition

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

25%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

Unsafe pattern score

0

Dep constraint coverage

100%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

4.1.0

System requirements

C++ standard

License

MIT + file LICENSE

License flags

SPDX valid, OSI approved

History

Versions

4

First release

2021-01-15

Latest release

2024-07-27

Avg cadence

340 days

Cold removal rate

Dep drift

3

LOC over versions

v0.1.0: 2,192 LOCv0.1.1: 2,191 LOCv0.2.0: 2,497 LOCv0.2.1: 2,497 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Dependency Network

Dependencies Reverse dependencies dplyr geosphere ggmap glue httr lubridate rlang (>= 0.4.0) tibble slider xml2 activatr

Version History

5 tracked
new 0.2.1 Mar 10, 2026
updated 0.2.1 ← 0.2.0 diff Jul 26, 2024
updated 0.2.0 ← 0.1.1 diff Aug 21, 2023
updated 0.1.1 ← 0.1.0 diff May 1, 2023
new 0.1.0 Jan 14, 2021