Using R's profvis package to diagnose and resolve bottlenecks (CC286)

May 27, 2024 • PD Schloss • 1 min read

Is your R code running slow? Do you know the slowest part? Here, Pat uses the R profvis package to identify the slow points or bottlenecks in his R code. He then uses his test driven design platform written with testthat to optimize the performance the code. Calculating log likelihoods and using the Rfast R package also appear in the refactoring effor. This episode is part of an ongoing effort to develop an R package that implements the naive Bayesian classifier.

Code

You can browse the state of the repository at the