Learn R Programming

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

dipsaus (version 0.0.5)

A Dipping Sauce for Data Analysis and Visualizations

Description

Works as "add-ons" 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 'RcppParallel' and 'future' package; 3. modify R calls and convert among numbers, strings, and other objects. 4. utility functions to get system information such like CPU chipset, memory limit, etc.

Copy Link

Version

Install

install.packages('dipsaus')

Monthly Downloads

564

Version

0.0.5

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Zhengjia Wang

Last Published

March 12th, 2020

Functions in dipsaus (0.0.5)

col2hexStr

Convert color to Hex string
getInputBinding

Obtain registered input bindings
match_calls

Recursively match calls and modify arguments
screenshot

Take a screenshot in shiny apps
mem_limit2

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

Register customized input to enable support by compound input
use_shiny_dipsaus

Set up shiny plugins
AbstractQueue

Defines abstract queue class
AbstractMap

Abstract Map to store key-value pairs
fastmap2

A Wrapper for fastmap::fastmap
do_aggregate

Make aggregate pipe-friendly
actionButtonStyled

Action Button but with customized styles
get_cpu

Get CPU Chip-set Information
lock

Create or Unlock a Lock
baseline_array

Calculate Contrasts of Arrays in Different Methods
drop_nulls

Drop NULL values from list or vectors
base64_to_image

Save "Base64" Data to Images
eval_dirty

Evaluate expressions
make_async_evaluator

Create Asynchronous Evaluator to Queue Tasks
compoundInput2

Compound input that combines and extends shiny inputs
deparse_svec

Convert Integer Vectors To String (stable)
ask_or_default

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

Convert file to 'base64' format
package_installed

Check if a package is installed
get_ram

Get Memory Size
%+-%

Plus-minus operator
handler_dipsaus_progress

Progress-bar Handler
sync_shiny_inputs

Synchronize Shiny Inputs
no_op

Pipe-friendly no-operation function
time_delta

Calculate time difference and return a number
to_ram_size

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

Update compound inputs
updateActionButtonStyled

Update styled action button
iapply

Apply each elements with index as second input
collapse

Collapse Sensors And Calculate Summations/Mean (stable)
%=>%

A JavaScript style of creating functions
set_shiny_input

Set Shiny Input
shift_array

Shift Array by Index
lapply_async2

Apply, but in parallel
parse_svec

Parse Text Into Numeric Vectors (stable)
make_forked_clusters

Create forked clusters
map

Create R object map.
progress2

'Shiny' progress bar, but can run without reactive context
%?<-%

Assign if not exists, or NULL 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.
async_expr

Apply R expressions in a parallel way
ask_yesno

Ask and Return True or False from the Terminal
async

Evaluate expression in async_expr
async_flapply

Wrapper for future.apply::future_lapply
MasterEvaluator

Generator Class for Asynchronous Evaluation
cat2

Color Output
check_installed_packages

Check If Packages Are Installed, Returns Missing Packages
dev_create

Create a group of named graphic devices
PersistContainer

Wrapper to cache key-value pairs and persist across sessions