DiscoverR-bloggersJanuary 2025 Top 40 New CRAN Packages
January 2025 Top 40 New CRAN Packages

January 2025 Top 40 New CRAN Packages

Update: 2025-02-28
Share

Description




[This article was first published on R Works, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)

Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.







In January, one hundred eighty-six new packages made it to CRAN. Here are my Top 40 picks in sixteen categories: Archaeology, Artificial Intelligence, Computational Methods, Ecology, Epidemiology, Finance, Genomics, Health Technology Assessment, Machine Learning, Medicine, Music, Pharma, Statistics, Time Series, Utilities, and Visualization.





Archaeology


archeofrag.gui v0.1.0: Implements a shiny application to access the functions and datasets of the archeofrag package that brings spatial analysis to archaeology. Features include: a focus on connection relationships (i.e., physical refits), built-in workflows, plot generation, R code generation to re-execute the simulations in R and ensure reproducibility, and support for parallel computing. Look here for a demonstration version of the app, and look here for basic information.


Fragmentation graph from a simulation




Artificial Intelligence


ellmer v0.1.1: Integrates large language model chat from a range of providers including Claude, OpenAI, and more. Supports streaming, asynchronous calls, tool calling, and structured data extraction. There are five vignettes including Getting Started and Prompt design.


tidyprompt v0.0.1: Provides functions to construct prompts and associated logic for interacting with large language models (LLMs), and introduces the concept of prompt wraps, building blocks to turn a simple prompt into a complex one. In addition to modifying prompt text, prompt wraps also add extraction and validation functions that will be applied to the response of the LLM. There are three vignettes, including Getting started and Creating prompt wraps.




<summary>Show the code</summary>
# From prompt to ggplot
plot <- paste0(
"Create a scatter plot of miles per gallon (mpg) versus",
" horsepower (hp) for the cars in the mtcars dataset.",
" Use different colors to represent the number of cylinders (cyl).",
" Make the plot nice and readable,",
" but also be creative, a little crazy, and have humour!"
) |>
answer_using_r(
pkgs_to_use = c("ggplot2"),
evaluate_code = TRUE,
return_mode = "object"
) |>
send_prompt(openai)
plot



Example of respones to prompt




Computational Methods


QAEnsemble v1.0.0: Implements the Ensemble Quadratic and Affine Invariant Markov chain Monte Carlo algorithms, which provides an efficient way to perform Bayesian inference in difficult parameter space geometries. See Militzer (2023) and Goodman and Weare (2010), respectively, for background on these algorithms. There are three vignettes, including Fitting a disease Makov model and Fitting a Weibull distribution.


Plot showing accuracy of posteriorpredictive mean


zigg v0.0.2: Provides a lightweight interface to the Ziggurat pseudo-random number generator introduced by Marsaglia and Tsang (2000) and further improved by Leong et al. (2005), which can be used from R as well as from ‘C/C++’ code. It is very fast for the normal, exponential, and uniform distributions. See README to get started.


Plot of timing comparisons




Ecology


BerkeleyForestsAnalytics v2.0.4: Offers a suite of functions designed to produce standard metrics for forest management and ecology from forest inventory data. It is designed to minimize potential inconsistencies introduced by the algorithms that compute metrics. Look here to learn more about the purpose of the package and see the vignette for an example.


ritalic v0.10.1: A programmatic interface to the Web Service methods provided by the ITALIC database of lichen data in Italy and bordering European countries, including functions for retrieving information about lichen scientific names, geographic distribution, ecological data, morpho-functional traits, and identification. Look here for more information about the data and see README to get started.




Epidemiology


ggsurveillance v0.1.2: Provides functions to create epicurves and epigantt charts and prepare data for visualization or other reporting for infectious d

Comments 
00:00
00:00
x

0.5x

0.8x

1.0x

1.25x

1.5x

2.0x

3.0x

Sleep Timer

Off

End of Episode

5 Minutes

10 Minutes

15 Minutes

30 Minutes

45 Minutes

60 Minutes

120 Minutes

January 2025 Top 40 New CRAN Packages

January 2025 Top 40 New CRAN Packages

Joseph Rickert