workloopR
1.1.4Analysis of Work Loops and Other Data from Muscle Physiology Experiments
Overview
Functions for the import, transformation, and analysis of data from muscle physiology experiments. The work loop technique is used to evaluate the mechanical work and power output of muscle. Josephson (1985) doi:10.1242/jeb.114.1.493 modernized the technique for application in comparative biomechanics. Although our initial motivation was to provide functions to analyze work loop experiment data, as we developed the package we incorporated the ability to analyze data from experiments that are often complementary to work loops. There are currently three supported experiment types: work loops, simple twitches, and tetanus trials. Data can be imported directly from .ddf files or via an object constructor function. Through either method, data can then be cleaned or transformed via methods typically used in studies of muscle physiology. Data can then be analyzed to determine the timing and magnitude of force development and relaxation (for isometric trials) or the magnitude of work, net power, and instantaneous power among other things (for work loops). Although we do not provide plotting functions, all resultant objects are designed to be friendly to visualization via either base-R plotting or 'tidyverse' functions. This package has been peer-reviewed by rOpenSci (v. 1.1.0).
Install
Health
- OK2026-03-1014 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 100%
- Documented parameters
- 98%
- Return-value docs
- 100%
- References docs
- 40%
Downloads
Repository
Repository practices
7 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/ropensci/workloopr on 2026-07-19.
Show all practices
Dependencies
Nothing depends on this yet.
Code & Tests
- Cyclomatic complexity
- 2.0 median / 12 max
- Test cases
- 35 / 0.28 per code line
Test coverage
Line coverage
100%
Expression
100.0%
Tests / Examples
100.0% / 73% ex
Functions
29 14 exported
Complexity
3.2 avg / 12 max
Call network
29 nodes / 18 edges
Call graph
Open call graph →Lowest coverage
29 functions| Function | Cyclo | Coverage |
|---|---|---|
| analyze_workloop exp | 7 | 100% |
| as_muscle_stim exp | 12 | 100% |
| fix_GR exp | 5 | 100% |
| get_wl_metadata exp | 1 | 100% |
| invert_position exp | 2 | 100% |
| isometric_timing exp | 5 | 100% |
People & History
1 release. R releases are shown for context.
- RR 4.6.0 released · 2026-04-24
- 1.1.4Latest2026-03-10 · current release
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2021-05-06
- Total releases
- 1 / 5 yrs
- License
- GPL (>= 3) OSI
- Download size
- 889 KB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet