All Projects → burgerga → shinyTime

burgerga / shinyTime

Licence: GPL-3.0 license
A timeInput widget for Shiny

Programming Languages

r
7636 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to shinyTime

shiny-directory-input
An shiny input widget for selecting directories
Stars: ✭ 43 (+86.96%)
Mutual labels:  widget, shiny
Circularpicker
CircularPicker is helpful for creating a controller aimed to manage any calculated parameter.
Stars: ✭ 73 (+217.39%)
Mutual labels:  widget, timepicker
Hibiscus.js
Native Angular directives for Bootstrap4
Stars: ✭ 115 (+400%)
Mutual labels:  widget, timepicker
incrementally loading listview
An extension of the Flutter ListView widget for incrementally loading items upon scrolling
Stars: ✭ 172 (+647.83%)
Mutual labels:  widget
yii2-jstree-widget
jsTree tree widget for yii2
Stars: ✭ 16 (-30.43%)
Mutual labels:  widget
tidymodules
An Object-Oriented approach to Shiny modules
Stars: ✭ 110 (+378.26%)
Mutual labels:  shiny
stomt-unreal-plugin
Collect feedback in-game/in-app with STOMT for Unreal Engine.
Stars: ✭ 23 (+0%)
Mutual labels:  widget
Accordion
Silky-smooth accordion widgets with no external dependencies.
Stars: ✭ 32 (+39.13%)
Mutual labels:  widget
qing
🍧一个UI组件库。包括 { 日期选择器组件 } { 时间选择器组件 } { 分页组件 } { 树组件 } { 级联选择器组件 } { 表单组件 } 等,ES6语法编写,原生模块化
Stars: ✭ 71 (+208.7%)
Mutual labels:  timepicker
flhooks
React like Hooks implementation for Flutter.
Stars: ✭ 38 (+65.22%)
Mutual labels:  widget
widgetci
a Cross-Platform Widget Management App. (Win/Linux/Mac)
Stars: ✭ 36 (+56.52%)
Mutual labels:  widget
popoPicker
popoPicker是一个移动端3D滚轮日期时间和单项的选择器,支持无限循环滚动,不依赖第三方库
Stars: ✭ 26 (+13.04%)
Mutual labels:  timepicker
LabPype
Framework for Creating Pipeline Software
Stars: ✭ 18 (-21.74%)
Mutual labels:  widget
shinyEvents
Use shiny with event handlers instead of reactivity
Stars: ✭ 36 (+56.52%)
Mutual labels:  shiny
shiny-scrollytell
📜 Scrollytelling in R, because its easier than D3™
Stars: ✭ 41 (+78.26%)
Mutual labels:  shiny
prettifyAddins
RStudio addins to prettify JavaScript/HTML/CSS/Markdown/C++ and more.
Stars: ✭ 18 (-21.74%)
Mutual labels:  shiny
shinyCircos
an R/shiny application for creation of Circos plot interactively
Stars: ✭ 127 (+452.17%)
Mutual labels:  shiny
AbsTK
The Abstract Toolkit – a widget toolkit for GUI and text-mode applications.
Stars: ✭ 67 (+191.3%)
Mutual labels:  widget
flutter redux
A Flutter Starter Application
Stars: ✭ 25 (+8.7%)
Mutual labels:  widget
KLineChartAndroid
A kline chart UI widget for android(Android版本的k线).
Stars: ✭ 51 (+121.74%)
Mutual labels:  widget

shinyTime

Build Status Buy Me a Coffee at ko-fi.com

Overview

shinyTime provides a timeInput widget for Shiny. This widget allows intuitive time input in the [hh]:[mm]:[ss] or [hh]:[mm] (24H) format by using a separate numeric input for each time component. Setting and getting of the time in R is done with date-time objects.

Installation

# Install from CRAN
install.packages("shinyTime")

Usage

As the shinyTime package mimics the existing shiny functionality, using the package is easy:

ui <- fluidPage(
  # Using the default time 00:00:00
  timeInput("time1", "Time:"),

  # Set to current time
  timeInput("time2", "Time:", value = Sys.time()),

  # Set to custom time 
  timeInput("time3", "Time:", value = strptime("12:34:56", "%T")),
  
  # Use %H:%M format
  timeInput("time4", "Time:", seconds = FALSE)
  
  # Use multiples of 5 minutes
  timeInput("time5", "Time:", minute.steps = 5)
)

Note that setting an initial value is done with a date-time object, in the same way as setting a date in dateInput can be done with a Date object.

The value retrieved will also be a date-time object. You need to convert it to character to be able to show the time, as the default character representation does not include time. For example:

server <- function(input, output) {
  # Print the time in [hh]:[mm]:[ss] everytime it changes
  observe(print(strftime(input$time1, "%T")))
  
  # Print the time in [hh]:[mm] everytime it changes
  observe(print(strftime(input$time4, "%R")))
}

For a demo, visit the online example app or try the shinyTime::shinyTimeExample() function.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].