Package 'communicate'

Title: Communicate Between 'Shiny' Client and Server
Description: What the package does (one paragraph).
Authors: John Coene [aut, cre], Opifex [cph, fnd]
Maintainer: John Coene <[email protected]>
License: GPL (>= 3)
Version: 0.1.3.9000
Built: 2024-11-18 04:08:47 UTC
Source: https://github.com/devOpifex/communicate

Help Index


Checks that arguments passed matched that in function

Description

Checks that arguments passed matched that in function

Usage

check_args_match(callback, ...)

Arguments

callback

Callback function to check against.

...

Arguments.


Communication

Description

Communication handler.

Usage

com(id, handler)

Arguments

id

ID of communication handler.

handler

Callback function.


Communicate

Description

Serve communication channels.

Usage

com_serve(session = shiny::getDefaultReactiveDomain())

Arguments

session

Shiny session.


Type Converters

Description

Type converters for convenience.

Usage

Character

Integer

Numeric

Date

Posixct

Posixlt

Dataframe

List

Function

Format

An object of class list of length 2.

An object of class list of length 2.

An object of class list of length 2.

An object of class list of length 2.

An object of class list of length 2.

An object of class list of length 2.

An object of class list of length 2.

An object of class list of length 2.

An object of class list of length 2.


Create type

Description

Create a new type with its associated checker and converter.

Usage

create_type(r_converter, js_checker = NULL, name = NULL)

Arguments

r_converter

R converter function to transform the value. received from the server to the desired type in R.

js_checker

JavaScript checker function to check if the value received from the client is of the desired type.

name

Name of the type.


Example

Description

Run example

Usage

example()

Dependencies for communicate

Description

Dependencies for communicate, to place withing the Shiny UI.

Usage

useCommunicate()