A curated list of open technology projects to sustain a stable climate, energy supply, biodiversity and natural resources.

TrenchR

Facilitates microclimate modeling to translate weather station data into the environmental conditions experienced by organisms and biophysical modeling to predict organismal body temperatures given the environmental conditions.
https://github.com/trenchproject/trenchr

Category: Biosphere
Sub Category: Ecological and Environmental Modeling

Keywords from Contributors

thermal-ecology biophysics bookdown ecology-modelling educational-resources

Last synced: about 18 hours ago
JSON representation

Repository metadata

an R package for transparent environmental and ecological biophysics

README.md

TrenchR: an R package for transparent environmental and ecological biophysics

R-CMD-check
Codecov test coverage
NSF-1349865
License

Author: TrEnCh project, Buckley Lab, Department of Biology, University of Washington

Package website

Description

The TrenchR package aids in Translating Environmental Change into organismal responses. The package facilitates microclimate modeling to translate weather station data into the environmental conditions experienced by organisms and biophysical modeling to predict organismal body temperatures given the environmental conditions. The package aims to introduce and enable microclimate and biophysical modeling to improve ecological and evolutionary forecasting and includes tutorials and well as a series of educational modules introducing microclimate and biophysical modeling. The package focuses on transparent and modular functions but also includes some biophysical models for particular organisms. The package complements and integrates with the NicheMapR package, which contains more complex functions that are generally not intended for modular use.

Installation

You can install the TrenchR package from CRAN:

install.packages("TrenchR")  

The latest version of the package can be installed from the github repository:

install.packages("devtools")   
devtools::install_github("trenchproject/TrenchR")

Using the package

The package encompasses simple functions that can be combined to estimate environmental conditions and their impacts on organisms.
Many of the functions are adapted from biophysical ecology texts including the following:

  • Gates DM. 1980. Biophysical Ecology.
  • Campbell GS and Norman JM. 2000. An introduction to environmental biophysics.

Package Vignettes

We introduce functions in categorically grouped tutorials. A good place to start is the Allometry and conversions tutorial, which provides tools for preparing data such as estimating additional dimensions of organisms from measured dimensions.

vignette("AllometryAndConversionsTutorial.Rmd", package = "TrenchR")

The Estimating microclimates tutorial provides resources for estimating the environmental conditions experienced by organisms. This includes estimating solar radiation and its components, diurnal variation in temperature and radiation, temperature and wind speed profiles, and soil temperatures and profiles.

vignette("MicroclimateTutorial", package = "TrenchR")

Finally, the core biophysical modeling functions are described in a tutorial on Using energy balances to estimate body temperatures. Components of an energy budget can be estimated using individual functions and then operative environmental temperatures, Te, can be solved for using either a generic energy balance or taxa specific biophysical models.

vignette("TeTutorial", package = "TrenchR")

Future Directions

We welcome code contributions, fixes, and comments. Code (scripts and functions) will be accepted in any programming language and thorough commenting will be appreciated. We would also appreciate your including a header that describes the intent, input, and output of your scripts and functions.

Citation

If you use this package, We would appreciate a citation. You can see an up to date citation information with citation("TrenchR"). You can cite either the package or the accompanying journal article.

Developer notes

Please see the Contributor Notes and Code of Conduct.

We use Rdpack to facilitate package documentation with BibTeX citations. See the documentation workflow document for more details about building package manual components.


Owner metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: 8 days ago

Total Commits: 657
Total Committers: 12
Avg Commits per committer: 54.75
Development Distribution Score (DDS): 0.728

Commits in past year: 17
Committers in past year: 2
Avg Commits per committer in past year: 8.5
Development Distribution Score (DDS) in past year: 0.059

Name Email Commits
L Buckley l****y@g****m 179
juniperlsimonis d****s@g****m 158
Aji John a****n@g****m 126
Lauren Buckley l****y@g****m 58
Yutaro Sakairi y****i@g****m 49
Isaac Caruso 4****1 38
Lauren Buckley l****y@D****u 21
Abby Meyer a****r@A****l 17
Bryan Briones Ortiz b****4@u****u 6
Ofir Levy l****i@g****m 2
Eric Riddell 3****y 2
Lauren Buckley l****y@L****l 1

Committer domains:


Issue and Pull Request metadata

Last synced: 2 days ago

Total issues: 39
Total pull requests: 63
Average time to close issues: 4 months
Average time to close pull requests: about 6 hours
Total issue authors: 7
Total pull request authors: 4
Average comments per issue: 1.77
Average comments per pull request: 0.49
Merged pull request: 61
Bot issues: 0
Bot pull requests: 0

Past year issues: 0
Past year pull requests: 0
Past year average time to close issues: N/A
Past year average time to close pull requests: N/A
Past year issue authors: 0
Past year pull request authors: 0
Past year average comments per issue: 0
Past year average comments per pull request: 0
Past year merged pull request: 0
Past year bot issues: 0
Past year bot pull requests: 0

More stats: https://issues.ecosyste.ms/repositories/lookup?url=https://github.com/trenchproject/trenchr

Top Issue Authors

  • juniperlsimonis (25)
  • icaruso21 (5)
  • lbuckley (4)
  • henningte (2)
  • ys634 (1)
  • aeiche01 (1)
  • mladencucak (1)

Top Pull Request Authors

  • juniperlsimonis (49)
  • icaruso21 (11)
  • ecophysiology (2)
  • lbuckley (1)

Top Issue Labels

Top Pull Request Labels


Package metadata

cran.r-project.org: TrenchR

Tools for Microclimate and Biophysical Ecology

  • Homepage: https://trenchproject.github.io/TrenchR/
  • Documentation: http://cran.r-project.org/web/packages/TrenchR/TrenchR.pdf
  • Licenses: MIT + file LICENSE
  • Latest release: 1.1.1 (published over 1 year ago)
  • Last Synced: 2025-04-26T14:35:13.668Z (2 days ago)
  • Versions: 3
  • Dependent Packages: 0
  • Dependent Repositories: 1
  • Downloads: 178 Last month
  • Rankings:
    • Forks count: 9.635%
    • Stargazers count: 17.386%
    • Dependent repos count: 23.981%
    • Average: 26.403%
    • Dependent packages count: 28.751%
    • Downloads: 52.262%
  • Maintainers (1)

Dependencies

.github/workflows/pkgdown.yaml actions
  • actions/checkout v2 composite
  • r-lib/actions/setup-pandoc v1 composite
  • r-lib/actions/setup-r v1 composite
  • r-lib/actions/setup-r-dependencies v1 composite
.github/workflows/r_command_check.yaml actions
  • actions/checkout v2 composite
  • r-lib/actions/check-r-package v2 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/test-coverage.yml actions
  • actions/cache v2 composite
  • actions/checkout v2 composite
  • r-lib/actions/setup-pandoc v1 composite
  • r-lib/actions/setup-r v1 composite
DESCRIPTION cran
  • R >= 3.3.1 depends
  • Rdpack >= 0.7 imports
  • deSolve * imports
  • msm * imports
  • stats * imports
  • zoo * imports
  • covr * suggests
  • knitr * suggests
  • rmarkdown * suggests
  • testthat * suggests

Score: 10.38591370178042