Learn R Programming

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

dipsaus (version 0.0.3)

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

791

Version

0.0.3

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Zhengjia Wang

Last Published

November 18th, 2019

Functions in dipsaus (0.0.3)

compoundInput2

Compound input that combines and extends shiny inputs
eval_dirty

Evaluate expressions
ask_or_default

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

Convert color to Hex string
progress2

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

Create R object map.
queue

Create R object queue.
updateCompoundInput2

Update compound inputs
match_calls

Recursively match calls and modify arguments
collapse

Collapse Sensors And Calculate Summations/Mean (stable)
AbstractMap

Abstract Map to store key-value pairs
do_aggregate

Make aggregate pipe-friendly
deparse_svec

Convert Integer Vectors To String (stable)
drop_nulls

Drop NULL values from list or vectors
getInputBinding

Obtain registered input bindings
AbstractQueue

Defines abstract queue class
mem_limit2

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

Pipe-friendly no-operation function
make_forked_clusters

Create forked clusters
make_async_evaluator

Create Asynchronous Evaluator to Queue Tasks
to_ram_size

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

Get CPU Chip-set Information
updateActionButtonStyled

Update styled action button
%=>%

A JavaScript style of creating functions
cat2

Color Output
check_installed_packages

Check If Packages Are Installed, Returns Missing Packages
%?<-%

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.
registerInputBinding

Register customized input to enable support by compound input
sync_shiny_inputs

Synchronize Shiny Inputs
package_installed

Check if a package is installed
get_ram

Get Memory Size
parse_svec

Parse Text Into Numeric Vectors (stable)
%+-%

Plus-minus operator
iapply

Apply each elements with index as second input
to_datauri

Convert file to 'base64' format
time_delta

Calculate time difference and return a number
MasterEvaluator

Generator Class for Asynchronous Evaluation
ask_yesno

Ask and Return True or False from the Terminal
async

Evaluate expression in async_expr
PersistContainer

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

Action Button but with customized styles
async_flapply

Wrapper for future.apply::future_lapply
async_expr

Apply R expressions in a parallel way