Skip to content

cgmanalysis

Clean and Analyze Continuous Glucose Monitor Data

v3.2.0 · Mar 25, 2026 · CC0

Description

This code provides several different functions for cleaning and analyzing continuous glucose monitor data. Currently it works with 'Dexcom', 'iPro 2', 'Diasend', 'Libre', or 'Carelink' data. The cleandata() function takes a directory of CGM data files and prepares them for analysis. cgmvariables() iterates through a directory of cleaned CGM data files and produces a single spreadsheet with data for each file in either rows or columns. The column format of this spreadsheet is compatible with REDCap data upload. cgmreport() also iterates through a directory of cleaned data, and produces PDFs of individual and aggregate AGP plots. Please visit <https://github.com/childhealthbiostatscore/R-Packages/> to download the new-user guide.

Downloads

820

Last 30 days

4345th

2.4K

Last 90 days

8.4K

Last year

Trend: -6.2% (30d vs prior 30d)

CRAN Check Status

1 ERROR
13 OK
Show all 14 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-macos-arm64 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 ERROR
Check details (1 non-OK)
ERROR r-release-windows-x86_64

examples

Running examples in 'cgmanalysis-Ex.R' failed
The error most likely occurred in:

> ### Name: cgmreport
> ### Title: Generate AGP
> ### Aliases: cgmreport
> 
> ### ** Examples
> 
> cgmreport(system.file("extdata", "Cleaned", package = "cgmanalysis"))
Error in stats::smooth(quartiles$sensorglucose5perc, kind = "3R", twiceit = TRUE) : 
  attempt to smooth NA values
Calls: cgmreport -> <Anonymous>
Execution halted

Check History

ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 30, 2026
ERROR r-release-windows-x86_64

examples

Running examples in 'cgmanalysis-Ex.R' failed
The error most likely occurred in:

> ### Name: cgmreport
> ### Title: Generate AGP
> ### Aliases: cgmreport
> 
> ### ** Examples
> 
> cgmreport(system.file("extdata", "Cleaned", package = "cgmanalysis"))
Error in stats::smooth(quartiles$sensorglucose5perc, kind = "3R", twiceit = TRUE) : 
  attempt to smooth NA values
Calls: cgmreport -> <Anonymous>
Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Dependency Network

Dependencies Reverse dependencies ggplot2 parsedate lubridate pracma zoo pastecs readxl readr XML MESS rlang cgmanalysis

Version History

updated 3.2.0 ← 3.1.1 diff Mar 25, 2026
new 3.1.1 Mar 10, 2026
updated 3.1.1 ← 3.1.0 diff Jun 8, 2025
updated 3.1.0 ← 3.0.2 diff Apr 6, 2025
updated 3.0.2 ← 3.0.1 diff Feb 2, 2025
updated 3.0.1 ← 3.0 diff Jan 31, 2025
updated 3.0 ← 2.7.7 diff Jan 29, 2025
updated 2.7.7 ← 2.7.6 diff Oct 19, 2023
updated 2.7.6 ← 2.7.5 diff Oct 23, 2022
updated 2.7.5 ← 2.7.4 diff Sep 29, 2022
updated 2.7.4 ← 2.7.3 diff Sep 7, 2022
updated 2.7.3 ← 2.7.2 diff Jul 6, 2022
updated 2.7.2 ← 2.7.1 diff Jun 8, 2021
updated 2.7.1 ← 2.7 diff Feb 14, 2021
updated 2.7 ← 2.6.1 diff Apr 29, 2020
updated 2.6.1 ← 2.6 diff Mar 11, 2020
updated 2.6 ← 2.5 diff Feb 18, 2020
updated 2.5 ← 2.4 diff Oct 23, 2019
updated 2.4 ← 2.3 diff May 21, 2019
updated 2.3 ← 2.2 diff Mar 25, 2019