my_layout: Custom Layout for Shiny's App Ui

Description Usage Arguments Details Author(s) Examples

View source: R/my_layout.R

Description

Adds a custom sidebarLayout consisting of a sidebar panel and a main panel to the Ui when called.

Usage

1
my_layout(id, x, output, input_option = NULL)

Arguments

id

The input id of the select Input that will get passed on to the apps' server.

x

A column from a dataframe or tibble that contains country names.

output

The servers output that you want to get displayed

input_option

Opional argument to add another select input option for the user. Defaults to NULL.

Details

The purpose of this function is to automatically add a custom layout used in all tabs of the app to remove code duplication and avoid errors.

Author(s)

Panagiotis Stylianos

Examples

1
2
3
4
5
6
7
8
## Not run: 
my_layout(id = "country_cases",
x = coronavirus$country,
output = plotOutput(),
input_option = NULL
)

## End(Not run)

etc5523-2020/r-package-assessment-petestylianos documentation built on Jan. 1, 2021, 1:12 a.m.