Skip to contents

The ontodive repository contains an R package of the same name that includes the analyses and functions accompanying the paper “Contrasting offspring dependence periods and diving development rates in two closely related marine mammal species” by Joffrey Jouma’a, Florian Orgeret, Baptiste Picard, Patrick W. Robinson, Henri Weimerskirch, Christophe Guinet, Daniel P. Costa, Roxanne S. Beltran.

Installation

You can install the released version of ontodive from GitHub with:

if (require(devtools)) {
  devtools::install_github(repo = "SESjo/ontodive")
} else {
  install.packages("devtools")
  devtools::install_github(repo = "SESjo/ontodive")
}

You may encounter the error below, in which case changing the network solved my problem as others have also reported.

# Downloading GitHub repo SESjo/ontodive@HEAD
# Error in utils::download.file(url, path, method = method, quiet = quiet,  :
#   download from 'https://api.github.com/repos/SESjo/ontodive/tarball/HEAD' failed

Example

Once installed, you can easily access vignettes (which are supposed to be associated with a specific analysis) using these commands:

# load the package
library(ontodive)

# browse vignette
browseVignettes("ontodive")

Languages and tools

docker