Learn R Programming

⚠️There's a newer version (0.3.1) of this package.Take me there.

dipsaus (version 0.3.0)

A Dipping Sauce for Data Analysis and Visualizations

Description

Works as an "add-on" to packages like 'shiny', 'future', as well as 'rlang', and provides utility functions. Just like dipping sauce adding flavors to potato chips or pita bread, 'dipsaus' for data analysis and visualizations adds handy functions and enhancements to popular packages. The goal is to provide simple solutions that are frequently asked for online, such as how to synchronize 'shiny' inputs without freezing the app, or how to get memory size on 'Linux' or 'MacOS' system. The enhancements roughly fall into these four categories: 1. 'shiny' input widgets; 2. high-performance computing using the 'future' package; 3. modify R calls and convert among numbers, strings, and other objects. 4. utility functions to get system information such like CPU chip-set, memory limit, etc.

Copy Link

Version

Install

install.packages('dipsaus')

Monthly Downloads

557

Version

0.3.0

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Zhengjia Wang

Last Published

December 17th, 2024

Functions in dipsaus (0.3.0)

ask_yesno

Ask and Return True or False from the Terminal
ask_or_default

Read a Line from the Terminal, but with Default Values
as_pipe

Convert functions to pipe-friendly functions
add_to_session

Store/Get key-value pairs in 'shiny' session
async_flapply

Wrapper for future.apply::future_lapply
base64_to_image

Save "Base64" Data to Images
attached_packages

Get attached package names in current session (Internally used)
check_installed_packages

Check If Packages Are Installed, Returns Missing Packages
capture_expr

Captures Evaluation Output of Expressions as One Single String
async_works

Run jobs in other R sessions without waiting
base64_to_string

Convert "Base64" Data to String
clear_env

Function to clear all elements within environment
digest2

Digest R object with source reference removed
decorate_function

Python-style decorator
cat2

Color Output
baseline_array

Calculate Contrasts of Arrays in Different Methods
base64-url

Encode or decode 'base64'
compoundInput2

Compound input that combines and extends shiny inputs
do_aggregate

Make aggregate pipe-friendly
dipsaus-rstudio-shortcuts

Register customized R code to 'RStudio' shortcuts
collapse

Collapse Sensors And Calculate Summations/Mean
get_cpu

Defunct Functions in Package dipsaus The functions or variables listed here are no longer part of the package.
deparse_svec

Convert Integer Vectors To String
eval_dirty

Evaluate expressions
flex_div

Generate Shiny element with arrangement automatically
fastqueue2

A Wrapper for fastmap::fastqueue
fastquantile

Calculate single quantile for numerical values
%=>%

A JavaScript style of creating functions
%OF%

Get an element with condition that it must be from a list or vector
getInputBinding

Obtain registered input bindings
get_credential

Generate a random password
forelse

Python-style "for-else" function
%?<-%

Left-hand side checked assignment Provides a way to assign default values to variables. If the statement `lhs` is invalid or NULL, this function will try to assign value, otherwise nothing happens.
fancyFileInput

Shiny drag-and-drop file input
html_class

Combine, add, or remove 'HTML' classes
iapply

Apply each elements with index as second input
graphic-devices

Create a group of named graphic devices
%<-?%

Right-hand side checked assignment Provides a way to avoid assignment to the left-hand side. If the statement `value` is invalid or NULL, this function will not assign values and nothing happens.
get_dots

Get or check elements from dots '...'
col2hexStr

Convert color to Hex string
fastmap2

A Wrapper for fastmap::fastmap
get_ip

Get 'IP' address
fastcov2

Calculate Covariance Matrix in Parallel
handler_dipsaus_progress

Progress-bar Handler
list_to_fastqueue2

Copy elements to fastqueue2
%+-%

Plus-minus operator
html_asis

Escape HTML strings
do_nothing

A dummy function that literally does nothing
match_calls

Recursively match calls and modify arguments
mask_function2

Mask a function with given variables
drop_nulls

Drop NULL values from list or vectors
lock

Create or Unlock a Lock
rs_avail

Verify 'RStudio' version
new_function2

Create new function that supports 'quasi-quosure' syntax
no_op

Pipe-friendly no-operation function
progress2

'Shiny' progress bar, but can run without reactive context
print_directory_tree

Print Directory Tree
is_from_namespace

Check whether a function, environment comes from a namespace
get_os

Detect the type of operating system
rs_set_repos

Add secondary 'CRAN'-like repository to the 'RStudio' settings
registerInputBinding

Register customized input to enable support by compound input
rs_viewer

Get 'RStudio' Viewer, or Return Default
reexports

Objects exported from other packages
ste_mean

Standard error of mean
session_uuid

Provides Unique Session ID According to Current R Session
screenshot

Take a screenshot in shiny apps
sexp_type2

Get Internal Storage Type
rs_edit_file

Use 'RStudio' to open and edit files
set_shiny_input

Set Shiny Input
shiny_alert2

Simple shiny alert that uses 'JavaScript' promises
sync_shiny_inputs

Synchronize Shiny Inputs
test_farg

Test whether function has certain arguments
sumsquared

Fast Calculation of Sum-squared for Large Matrices/Vectors
lapply_async2

Apply, but in parallel
get_ram

Get Memory Size
rs_save_all

Save all documents in 'RStudio'
list_to_fastmap2

Copy elements to fastmap2
make_forked_clusters

Create forked clusters, but more than that
lapply_callr

Apply function with rs_exec
map

Create R object map.
mean_se

Calculates mean and standard error of mean
restart_session

Restart R Session
mem_limit2

Get max RAM size This is an experimental function that is designed for non-windows systems
shiny_is_running

Detect whether 'Shiny' is running
rs_exec

Schedule a Background Job
parse_svec

Parse Text Into Numeric Vectors
package_installed

Check if a package is installed
to_datauri

Convert file to 'base64' format
to_ram_size

Convert bytes to KB, MB, GB,...
time_delta

Calculate time difference and return a number
rs_focus_console

Focus on 'RStudio' Console
updateActionButtonStyled

Update styled action button
use_shiny_dipsaus

Set up shiny plugins
shared_finalizer

Create Shared Finalization to Avoid Over Garbage Collection
rs_active_project

Get 'RStudio' active project
rs_select_path

Use 'RStudio' to Select a Path on the Server
update_fastmap2

Migrate a fastmap2 object to a new one
shift_array

Shift Array by Index
updateCompoundInput2

Update compound inputs
async

Evaluate expression in async_expr
AbstractQueue

Defines abstract queue class
async_expr

Apply R expressions in a parallel way
PersistContainer

Wrapper to cache key-value pairs and persist across sessions
AbstractMap

Abstract Map to store key-value pairs
actionButtonStyled

Action Button but with customized styles