Skip to contents

ABMI Logo

In DevelopmentLifecyclePackage

ABMI Science Centre (Unofficial)

[!IMPORTANT] This package is intended for internal use within the ABMI Science Centre and serves as a development playground for prototyping, testing, and iterating on cross-project functions and workflows.

Installation

You can install the package directly from GitHub:

devtools::install_github("ABbiodiversity/sciCentRverse")

Functions

The package includes the following utility functions:

Spatial Functions

Time & Processing Functions

File I/O Functions

Data Manipulation Functions

Configuration Functions

Plotting & Styling Functions

Camera Methods Functions

Usage

library(sciCentRverse)

# Example: Convert strings to snake_case
snake_case(c("Normal 1991_2020 AHM", "Normal 1991_2020 bFFP"))

# Example: Format time difference
start_time <- Sys.time()
Sys.sleep(5)
end_time <- Sys.time()
format_time_diff(start_time, end_time)

# Example: Use custom ggplot2 theme
library(ggplot2)
ggplot(mtcars, aes(x = wt, y = mpg)) +
  geom_point() +
  labs(title = "Example Plot", x = "Weight", y = "MPG") +
  theme_science()

Dependencies

The package requires the following R packages: - dplyr - sf - terra - rnaturalearth - ggplot2 - glue - parallel

License

MIT