Make Shiny sliderInput support logarithmic scale. JS.logify create a Javascript function in string, and JS.onload register the functions to sliderInput. Search the usage in /inst/app/ui.R for examples.

JS.logify(digits = 2)

JS.onload(slider_id_vec, sci = FALSE)

Arguments

digits

digits after numerical point

slider_id_vec

vector of slider ids. Multiple functions for multiple sliderInput can be registered at once.

sci

use scientific notation

Value

JS code in string to logify sliderInput

JS code in string to register the JS logify functions

Functions

  • JS.logify: JS Function To Logify A sliderInput

  • JS.onload: JS code in string to register JS logify functions for each sliderInput