Learn R Programming

thisutils

Introduction

thisutils is an R package for providing utility functions for data analysis and computing. Includes functions for logging, parallel processing, and other computational tasks to streamline workflows.

Installation

Install CRAN version:

install.packages("thisutils")
# or
if (!require("pak", quietly = TRUE)) {
  install.packages("pak")
}
pak::pak("thisutils")

Install development version from GitHub use pak:

if (!require("pak", quietly = TRUE)) {
  install.packages("pak")
}
pak::pak("mengxu98/thisutils")

Usage

Please reference here.

Copy Link

Version

Install

install.packages('thisutils')

Monthly Downloads

1,179

Version

0.4.4

License

MIT + file LICENSE

Maintainer

Meng Xu

Last Published

April 2nd, 2026

Functions in thisutils (0.4.4)

is_windows

Check if the operating system is Windows
log_message

Print formatted message
normalization

Normalize numeric vector
parallelize_fun

Parallelize a function
simulate_sparse_matrix

Generate a simulated sparse matrix
remove_r

Check and remove R packages
pearson_correlation

Correlation and covariance calculation for sparse matrix
parse_inline_expressions

Parse inline expressions
remove_space

Remove and normalize spaces
r_square

Coefficient of determination (\(R^2\))
unnest_fun

Unnest a list-column
votep

Vote P-value
wilkinsonp

Wilkinson's P-value
print.thisutils_logo

Print logo
minimump

Minimum P-value
split_indices

Split indices.
maximump

Maximum P-value
sump

Sum P-value
thisutils-package

Collection of Utility Functions for Data Analysis and Computing
sparse_cor

Sparse correlation function
table_to_matrix

Switch table to matrix
matrix_process

Process matrix
matrix_to_table

Switch matrix to table
thisutils_logo

The logo of thisutils
try_get

Try to evaluate an expression a set number of times before failing
compute_simpson_index

Compute Simpson index from a KNN graph
check_ci_env

Check CI environment
as_matrix

Convert matrix into dense/sparse matrix
check_pkg_status

Check if a package is installed with the specified version
add_pkg_file

Add a package file and print package information
capitalize

Capitalize the first letter of each word
check_sparsity

Check sparsity of matrix
download

Download file from the Internet
compute_lisi

Compute Local Inverse Simpson's Index (LISI)
check_r

Check and install R packages
is_osx

Check if the operating system is macOS
figlet

The figlet function
is_linux

Check if the operating system is Linux
invoke_fun

Invoke a function with a list of arguments
figlet_font

Get a figlet font
%ss%

Value selection operator
is_apple_silicon

Check if the system is running on Apple Silicon
get_verbose

Get the verbose option
is_outlier

Detect outliers using MAD (Median Absolute Deviation)
get_namespace_fun

Get a function from a namespace
max_depth

Maximum depth of a list
meanp

Mean P-value