# The following example cannot be run on CRAN:
on_cran <- TRUE
if (!on_cran && have_dependencies()) {
## --- Example ---
## load a handful of example profiles from a PRO file
profiles <- snowprofilePro(system.file("extdata/snowprofile.pro",
package = "sarp.snowprofile.pyface"),
remove_soil = TRUE, suppressWarnings = TRUE)
summary(profiles)
names(profiles[[1]]$layers)
## compute p_unstable alongside critical crack length, slab_rho, slab_rhogs:
profiles <- computePunstable(profiles)
names(profiles[[1]]$layers)
} # END dependency and cran clause
Run the code above in your browser using DataLab