Package: cgmguru 1.2.0

Sang Ho Park

cgmguru: Advanced Continuous Glucose Monitoring Analysis with High-Performance C++ Backend

Tools for advanced analysis of continuous glucose monitoring (CGM) time-series, implementing GRID (Glucose Rate Increase Detector) and GRID-based algorithms for postprandial peak detection, and detection of hypoglycemic and hyperglycemic episodes (Levels 1/2/Extended) aligned with international consensus CGM metrics. Core algorithms are implemented in optimized C++ using 'Rcpp' to provide accurate and fast analysis on large datasets.

Authors:Sang Ho Park [aut, cre], Rosa Oh [aut, ctb], Sang-Man Jin [aut, ctb]

cgmguru_1.2.0.tar.gz
cgmguru_1.2.0.zip(r-4.7)cgmguru_1.2.0.zip(r-4.6)cgmguru_1.2.0.zip(r-4.5)
cgmguru_1.2.0.tgz(r-4.6-x86_64)cgmguru_1.2.0.tgz(r-4.6-arm64)cgmguru_1.2.0.tgz(r-4.5-x86_64)cgmguru_1.2.0.tgz(r-4.5-arm64)
cgmguru_1.2.0.tar.gz(r-4.7-arm64)cgmguru_1.2.0.tar.gz(r-4.7-x86_64)cgmguru_1.2.0.tar.gz(r-4.6-arm64)cgmguru_1.2.0.tar.gz(r-4.6-x86_64)
cgmguru_1.2.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
cgmguru/json (API)

# Install 'cgmguru' in R:
install.packages('cgmguru', repos = c('https://shstat1729.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/shstat1729/cgmguru/issues

Pkgdown/docs site:https://shstat1729.github.io

Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

Conda:

cpp

8.28 score 23 stars 59 scripts 516 downloads 23 exports 1 dependencies

Last updated from:6cbff3b877. Checks:13 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK234
linux-devel-x86_64OK210
source / vignettesOK394
linux-release-arm64OK295
linux-release-x86_64OK239
macos-release-arm64OK182
macos-release-x86_64OK419
macos-oldrel-arm64OK146
macos-oldrel-x86_64OK447
windows-develOK266
windows-releaseOK246
windows-oldrelOK240
wasm-releaseOK184

Exports:conga_rcppdetect_all_eventsdetect_between_maximadetect_hyperglycemic_eventsdetect_hypoglycemic_eventsexcursionfind_local_maximafind_max_after_hoursfind_max_before_hoursfind_min_after_hoursfind_min_before_hoursfind_new_maximagridinterpolate_cgmmage_rcppmaxima_gridmod_gridmodd_rcpporderfastrebound_eventssensor_wearstart_findertransform_df

Dependencies:Rcpp

cgmguru: Practical CGM Analysis Guide
Overview | Data Contract | Two Preprocessing Models | Subject-Level Overview | Inspecting the Event Grid | Hypoglycemia and Hyperglycemia Events | GRID Analysis | Postprandial Maxima | Excursion Analysis | Quick Visualization | Scaling Up | Function Map | Next Steps | References

Last update: 2026-06-13
Started: 2026-06-09

cgmguru: Complete CGM Analysis Workflow
Core functions at a glance | Loading Sample Data | 1. Basic GRID Analysis | 2. Hyperglycemic Event Detection | 3. Hypoglycemic Event Detection | 4. Comprehensive Event Detection | 5. Local Maxima Detection | 6. Maxima-GRID Combined Analysis | 7. Excursion Analysis | 8. Advanced Pipeline: Complete Workflow | 9. Time-Based Analysis Functions | 10. Data Ordering Utility | 11. Visualization Examples | 12. Performance Comparison | Summary | Core Analysis Functions: | Advanced Pipeline Functions: | Utility Functions: | Key Features: | References

Last update: 2026-05-25
Started: 2025-09-03

cgmguru: Examples Gallery
Overview | Notes | GRID | Detect all events | Detect hyperglycemic events | Detect hypoglycemic events | Excursion | Local maxima | Max after hours | Max before hours | Min after hours | Min before hours | Maxima + GRID combined | Ordering utility | Start finder | Transform dataframe | Function reference and help

Last update: 2026-05-25
Started: 2025-10-31

detect_all_events function: cgmguru and iglu-compatible event preprocessing
Relationship to iglu | Datasets | iglu: episode_calculation | cgmguru: detect_all_events | Speed comparison | References

Last update: 2026-05-25
Started: 2025-10-31

detect_between_maxima function
detect_between_maxima | Overview | Inputs | Returns | Run documented examples

Last update: 2026-05-25
Started: 2025-10-31

detect_hyperglycemic_events function
detect_hyperglycemic_events

Last update: 2026-05-25
Started: 2025-10-31

detect_hypoglycemic_events function
detect_hypoglycemic_events

Last update: 2026-05-25
Started: 2025-10-31

excursion function
excursion | Overview | Inputs | Returns | Run documented examples

Last update: 2026-05-25
Started: 2025-10-31

find_local_maxima function
find_local_maxima

Last update: 2026-05-25
Started: 2025-10-31

find_max_after_hours function
find_max_after_hours

Last update: 2026-05-25
Started: 2025-10-31

find_max_before_hours function
find_max_before_hours

Last update: 2026-05-25
Started: 2025-10-31

find_min_after_hours function
find_min_after_hours

Last update: 2026-05-25
Started: 2025-10-31

find_min_before_hours function
find_min_before_hours

Last update: 2026-05-25
Started: 2025-10-31

find_new_maxima function
find_new_maxima

Last update: 2026-05-25
Started: 2025-10-31

grid function
Introduction | Example Data | Basic GRID Analysis | Parameter Sensitivity | Larger Dataset Example | Plotting GRID Events Over Time | Conclusion | How to Open this Vignette in RStudio

Last update: 2026-05-25
Started: 2025-10-30

maxima_grid function
maxima_grid

Last update: 2026-05-25
Started: 2025-10-31

mod_grid function
mod_grid

Last update: 2026-05-25
Started: 2025-10-31

orderfast function
orderfast | Overview | Inputs | Returns | Run documented examples

Last update: 2026-05-25
Started: 2025-10-31

start_finder function
start_finder | Overview | Inputs | Returns | Run documented examples

Last update: 2026-05-25
Started: 2025-10-31

transform_df function
transform_df | Overview | Inputs | Returns | Run documented examples

Last update: 2026-05-25
Started: 2025-10-31