knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

tRavis

R package version R-CMD-check

tRavis is a small R package which contains functions and data that are used regularly in my day-to-day workflows. It also provides an opportunity to practice creating, documenting, and maintaining code, within the framework of an R package and the recommended guidelines.

Installation

You can install tRavis from GitHub with:

# install.packages("devtools")
devtools::install_github("travis-m-blimkie/tRavis")

Examples

library(tRavis)

# Quickly compare two lists:
tr_compare_lists(c(1, 2, 3, 4), c(3, 4, 5, 6), names = c("A", "B"))

# Create a named list of files:
tr_get_files(
  directory = system.file("extdata", package = "tRavis"),
  pattern = "test",
  date = TRUE,
  remove_string = "test_"
)

# Neatly truncate strings:
tr_trunc_neatly(
  x = "This is a long string that we want to break neatly",
  l = 40
)

Versioning

This package makes use of SemVer.

Authors

Travis Blimkie is the originator and principal contributor. You can check the list of all contributors here.

License

This project is written under the MIT license, available here.

Acknowledgements

Thanks to everyone in the lab who has used these functions and provided ideas/feedback!



travis-m-blimkie/tRavis documentation built on April 9, 2024, 11:45 p.m.