You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a shiny app with an output image built from a logic conditional. What I want now is to save the data into Dropbox. The app run perfectly. However, I could not find the dataframe from the answers saved in my dropbox. Could anyone kindly help me?
I have first save the token for the rdrop2 into the app directory in a file .httr-oauth
library(shiny)
library(shinyBS)
library(shinymanager)
library(rdrop2)
library(shinyjs)
library(ROAuth)
#create a directory (my path for dropbox)
outputDir <- "C:/Users/sarad/Dropbox/responses"
I have created a splash to run the app
#create a splash
inactivity <- "function idleTimer() {
var t = setTimeout(logout, 120000);
window.onmousemove = resetTimer; // catches mouse movements
window.onmousedown = resetTimer; // catches mouse movements
window.onclick = resetTimer; // catches mouse clicks
window.onscroll = resetTimer; // catches scrolling
window.onkeypress = resetTimer; //catches keyboard actions
function logout() {
window.close(); //close the window
}
function resetTimer() {
clearTimeout(t);
t = setTimeout(logout, 1200000); // time is in milliseconds (1000 is 1 second)
}
}
idleTimer();"
splash_ui <- function(id) {
ns <- NS(id)
div(id = ns("splash_screen"), img(src = "start.png"),
style = "text-align:center; padding-top:0.5px;")
}
splash_server <- function(input, output, session) {
hide("splash_screen", anim = TRUE, animType = "fade", time = 3)
}
Also, a credential page to enter user and password:
# data.frame with credentials info
credentials <- data.frame(
user = c("xxx"),
password = c("xxx"),
#comment = c("name of the study"),
stringsAsFactors = FALSE
)
I have a shiny app with an output image built from a logic conditional. What I want now is to save the data into Dropbox. The app run perfectly. However, I could not find the dataframe from the answers saved in my dropbox. Could anyone kindly help me?
I have first save the token for the rdrop2 into the app directory in a file .httr-oauth
I have created a splash to run the app
Also, a credential page to enter user and password:
And then the app body:
Inputs that are the date of birth and weight:
And the server
The text was updated successfully, but these errors were encountered: