Skip to content

rfriend

Provides Batch Functions and Visualisation for Basic Statistical Procedures

v2.0.0 · Nov 11, 2025 · GPL-3

Description

Designed to streamline data analysis and statistical testing, reducing the length of R scripts while generating well-formatted outputs in 'pdf', 'Microsoft Word', and 'Microsoft Excel' formats. In essence, the package contains functions which are sophisticated wrappers around existing R functions that are called by using 'f_' (user f_riendly) prefix followed by the normal function name. This first version of the 'rfriend' package focuses primarily on data exploration, including tools for creating summary tables, f_summary(), performing data transformations, f_boxcox() in part based on 'MASS/boxcox' and 'rcompanion', and f_bestNormalize() which wraps and extends functionality from the 'bestNormalize' package. Furthermore, 'rfriend' can automatically (or on request) generate visualizations such as boxplots, f_boxplot(), QQ-plots, f_qqnorm(), histograms f_hist(), and density plots. Additionally, the package includes four statistical test functions: f_aov(), f_kruskal_test(), f_glm(), f_chisq_test for sequential testing and visualisation of the 'stats' functions: aov(), kruskal.test(), glm() and chisq.test. These functions support testing multiple response variables and predictors, while also handling assumption checks, data transformations, and post hoc tests. Post hoc results are automatically summarized in a table using the compact letter display (cld) format for easy interpretation. The package also provides a function to do model comparison, f_model_comparison(), and several utility functions to simplify common R tasks. For example, f_clear() clears the workspace and restarts R with a single command; f_setwd() sets the working directory to match the directory of the current script; f_theme() quickly changes 'RStudio' themes; and f_factors() converts multiple columns of a data frame to factors, and much more. If you encounter any issues or have feature requests, please feel free to contact me via email.

Downloads

228

Last 30 days

20062nd

624

Last 90 days

1.8K

Last year

Trend: +9.1% (30d vs prior 30d)

CRAN Check Status

1 WARNING
13 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc WARNING
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (1 non-OK)
WARNING r-devel-linux-x86_64-fedora-gcc

whether package can be installed

Found the following significant warnings:
  Warning: package 'this.path' was built under R version 4.6.0
See ‘/data/gannet/ripley/R/packages/tests-devel/rfriend.Rcheck/00install.out’ for details.

Check History

WARNING 12 OK · 0 NOTE · 2 WARNING · 0 ERROR · 0 FAILURE Mar 27, 2026
WARNING r-devel-linux-x86_64-fedora-clang

whether package can be installed

Found the following significant warnings:
  Warning: package 'this.path' was built under R version 4.6.0
See ‘/data/gannet/ripley/R/packages/tests-clang/rfriend.Rcheck/00install.out’ for details.
WARNING r-devel-linux-x86_64-fedora-gcc

whether package can be installed

Found the following significant warnings:
  Warning: package 'this.path' was built under R version 4.6.0
See ‘/data/gannet/ripley/R/packages/tests-devel/rfriend.Rcheck/00install.out’ for details.
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Dependency Network

Dependencies Reverse dependencies bestNormalize crayon DHARMa emmeans ggplot2 knitr magick multcomp multcompView MuMIn nortest pander rmarkdown rstatix rstudioapi +4 more dependencies rfriend

Version History

new 2.0.0 Mar 10, 2026
updated 2.0.0 ← 1.0.0 diff Nov 10, 2025
new 1.0.0 Jul 15, 2025