Skip to content

MIMSunit

Algorithm to Compute Monitor Independent Movement Summary Unit (MIMS-Unit)

v0.11.3 · May 14, 2026 · MIT + file LICENSE

Description

The MIMS-unit algorithm is developed to compute Monitor Independent Movement Summary Unit, a measurement to summarize raw accelerometer data while ensuring harmonized results across different devices. It also includes scripts to reproduce results in the related publication (John, D., Tang. Q., Albinali, F. and Intille, S. (2019) <doi:10.1123/jmpb.2018-0068>).

Downloads

CRAN

515

Last 30 days

7749th

974

Last 90 days

4.4K

Last year

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

r2u CRAN

3

Last 30 days

29

Last 90 days

100

Last year

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

autoCRAN

5

Last 7 days

19

Last 30 days

1

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

Check History

OK 8 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE May 15, 2026
Archived
Mar 27, 2026
ERROR 5 OK · 0 NOTE · 0 WARNING · 9 ERROR · 0 FAILURE Mar 10, 2026
ERROR r-devel-linux-x86_64-debian-clang

CRAN incoming feasibility

Maintainer: ‘Qu Tang <tang.q@northeastern.edu>’

Package CITATION file contains call(s) to old-style personList() or
as.personList().  Please use c() on person objects instead.
Package CITATION file contains call(s) to old-style citEntry().  Please
use bibentry() instead.
ERROR r-devel-linux-x86_64-debian-gcc

CRAN incoming feasibility

Maintainer: ‘Qu Tang <tang.q@northeastern.edu>’

Package CITATION file contains call(s) to old-style personList() or
as.personList().  Please use c() on person objects instead.
Package CITATION file contains call(s) to old-style citEntry().  Please
use bibentry() instead.
ERROR r-devel-linux-x86_64-fedora-clang

examples

Running examples in ‘MIMSunit-Ex.R’ failed
The error most likely occurred in:

> ### Name: import_mhealth_csv
> ### Title: Import raw multi-channel accelerometer data stored in mHealth
> ###   Specification
> ### Aliases: import_mhealth_csv
> 
> ### 
...[truncated]...
:import_mhealth_csv(filepath)
 2.   └─readr::read_csv(file = filepath, quoted_na = TRUE, col_types = coltypes)
 3.     └─lifecycle::deprecate_stop(...)
 4.       └─lifecycle:::deprecate_stop0(msg)
 5.         └─rlang::cnd_signal(...)
Execution halted
ERROR r-devel-linux-x86_64-fedora-gcc

examples

Running examples in ‘MIMSunit-Ex.R’ failed
The error most likely occurred in:

> ### Name: import_mhealth_csv
> ### Title: Import raw multi-channel accelerometer data stored in mHealth
> ###   Specification
> ### Aliases: import_mhealth_csv
> 
> ### 
...[truncated]...
:import_mhealth_csv(filepath)
 2.   └─readr::read_csv(file = filepath, quoted_na = TRUE, col_types = coltypes)
 3.     └─lifecycle::deprecate_stop(...)
 4.       └─lifecycle:::deprecate_stop0(msg)
 5.         └─rlang::cnd_signal(...)
Execution halted
ERROR r-devel-windows-x86_64

examples

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

> ### Name: import_mhealth_csv
> ### Title: Import raw multi-channel accelerometer data stored in mHealth
> ###   Specification
> ### Aliases: import_mhealth_csv
> 
> ### 
...[truncated]...
:import_mhealth_csv(filepath)
 2.   └─readr::read_csv(file = filepath, quoted_na = TRUE, col_types = coltypes)
 3.     └─lifecycle::deprecate_stop(...)
 4.       └─lifecycle:::deprecate_stop0(msg)
 5.         └─rlang::cnd_signal(...)
Execution halted
ERROR r-patched-linux-x86_64

examples

Running examples in ‘MIMSunit-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: import_mhealth_csv
> ### Title: Import raw multi-channel accelerometer data stored in mHealth
> ###  
...[truncated]...
...)
 4.       └─lifecycle:::deprecate_stop0(msg)
 5.         └─rlang::cnd_signal(...)
Execution halted
Examples with CPU (user + system) or elapsed time > 5s
                          user system elapsed
illustrate_extrapolation 4.325  0.067   5.383
ERROR r-release-linux-x86_64

examples

Running examples in ‘MIMSunit-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: import_mhealth_csv
> ### Title: Import raw multi-channel accelerometer data stored in mHealth
> ###  
...[truncated]...
...)
 4.       └─lifecycle:::deprecate_stop0(msg)
 5.         └─rlang::cnd_signal(...)
Execution halted
Examples with CPU (user + system) or elapsed time > 5s
                          user system elapsed
illustrate_extrapolation 4.246  0.043   5.422
ERROR r-release-windows-x86_64

examples

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

> ### Name: import_mhealth_csv
> ### Title: Import raw multi-channel accelerometer data stored in mHealth
> ###   Specification
> ### Aliases: import_mhealth_csv
> 
> ### 
...[truncated]...
:import_mhealth_csv(filepath)
 2.   └─readr::read_csv(file = filepath, quoted_na = TRUE, col_types = coltypes)
 3.     └─lifecycle::deprecate_stop(...)
 4.       └─lifecycle:::deprecate_stop0(msg)
 5.         └─rlang::cnd_signal(...)
Execution halted
ERROR r-oldrel-windows-x86_64

examples

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

> ### Name: import_mhealth_csv
> ### Title: Import raw multi-channel accelerometer data stored in mHealth
> ###   Specification
> ### Aliases: import_mhealth_csv
> 
> ### 
...[truncated]...
:import_mhealth_csv(filepath)
 2.   └─readr::read_csv(file = filepath, quoted_na = TRUE, col_types = coltypes)
 3.     └─lifecycle::deprecate_stop(...)
 4.       └─lifecycle:::deprecate_stop0(msg)
 5.         └─rlang::cnd_signal(...)
Execution halted

Line coverage

Expression

Tests / Examples

Functions

56 34 exported

Complexity

4.1 avg / 30 max

Call network

56 nodes / 58 edges

Test coverage has not been measured for this package yet; nodes fall back to a neutral fill.

Loading call graph…

Lowest coverage

Per-function coverage is not measured for this package yet.

Compare versions

Code

Structure

Lines of code

6,768

Files

81

Compiled share

0%

Has compiled src

No

Language breakdown

R 4,081 (60.3%)Tests 61 (0.9%)Docs 2,626 (38.8%)

API

Exported functions

34

Internal functions

15

Recent export changes

v0.9.1+1 shiny_app
v0.8.2+35 aggregate_for_mims, aggregate_for_orientation, bandlimited_interp +32 more

Testing & CI

Has tests

Yes

Test-to-code ratio

0.01

testthat edition

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

93.8%

\dontrun example ratio

3.1%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

0%

Unsafe pattern score

0

Dep constraint coverage

100%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

3.6.0

System requirements

4

C++ standard

License

MIT + file LICENSE

License flags

SPDX valid, OSI approved

History

Versions

9

First release

2020-03-02

Latest release

2026-05-14

Avg cadence

103 days

Cold removal rate

100%

Dep drift

3

LOC over versions

v0.8.2: 6,818 LOCv0.9.0: 6,871 LOCv0.9.1: 6,933 LOCv0.9.2: 6,989 LOCv0.10.0: 6,965 LOCv0.11.0: 7,049 LOCv0.11.1: 7,049 LOCv0.11.2: 6,642 LOCv0.11.3: 6,768 LOC

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

Dependency Network

Dependencies Reverse dependencies caTools tibble dplyr lubridate magrittr plyr readr R.utils stringr xts (>= 0.11-2) signal dygraphs shiny (>= 1.4.0.2) RColorBrewer ggplot2 MIMSunit

Version History

11 tracked
new 0.11.3 May 14, 2026
removed 0.11.2 Mar 27, 2026
new 0.11.2 Mar 10, 2026
updated 0.11.2 ← 0.11.1 diff Jun 20, 2022
updated 0.11.1 ← 0.11.0 diff Nov 19, 2021
updated 0.11.0 ← 0.10.0 diff Sep 2, 2021
updated 0.10.0 ← 0.9.2 diff Apr 28, 2021
updated 0.9.2 ← 0.9.1 diff Jul 31, 2020
updated 0.9.1 ← 0.9.0 diff May 20, 2020
updated 0.9.0 ← 0.8.2 diff Apr 24, 2020
new 0.8.2 Mar 1, 2020