-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error running shinyTime Example #8
Comments
Hi @Raphael04, for me your code is running without errors... EDIT: and can you show me your |
[1] D:/Pessoal/R/win-library/3.5 R -- Package was removed from disk. |
- Avoids problems with Internet Explorer - Fixes #8
It seems I used some javascript that is incompatible with older browsers, can you test my proposed solution using if (!require("pacman")) install.packages("pacman"); library(pacman)
p_load_gh('burgerga/shinyTime@fix/gh8')
shinyTimeExample() Much appreciated! |
Hi, Unfortunately, I'm getting the same error. How can I help you to investigate what is going on? =) |
Ah that is unfortunate :( |
Interesting point. When I ran the app with Browser (Google Chrome), Everything went ok.. |
Yes, I'm trying to figure out which browser your RStudio is using. On my pc I had a problem with Internet Explorer but I thought I fixed that with f843ce8... |
Just got this: getOption("browser") |
Can you try |
Rstudio redirected to Chrome |
Hmm, that it's working in Chrome means that most likely this is a javascript issue... p_load_current_gh('burgerga/shinyTime@fix/gh8')
shinyTimeExample() |
I'm getting a warning running the p_load:
After that, Nothing has changed when running shinyTimeExample (Working in Browser, error in Rstudio) |
That is strange...
Does it look like this: // From https://stackoverflow.com/a/48512262/1439843
var roundTime = function(value, minutesToRound) {
var roundTimeDate = function(date) {
var ms = 1000 * 60 * minutesToRound; // convert minutes to ms
return new Date(Math.round((new Date(date)).getTime() / ms) * ms);
};
roundedDate = roundTimeDate((new Date()).setHours(value.hour, value.min, value.sec));
return {hour: zeroPad(roundedDate.getHours()), min: zeroPad(roundedDate.getMinutes()), sec: zeroPad(roundedDate.getSeconds())};
}; or does it have |
I found lets in that version..
|
Ahhh, then my latest changes were not included, because of the failed update Can you try
This will delete the currently installed shinyTime so hopefully then the installation will succeed :) |
Now, everything is working =) Thanks so much! |
No problem, thanks for taking the time to report the issue and for your patience :) |
I'm trying to use the code example from the initial page of shinyTime but I'm getting errors
library(shiny) library(shinyTime) ui <- fluidPage( timeInput("time1", "Time:"), timeInput("time2", "Time:", value = Sys.time()), timeInput("time3", "Time:", value = strptime("12:34:56", "%T")), timeInput("time4", "Time:", seconds = FALSE), timeInput("time5", "Time:", minute.steps = 5) ) server <- function(input, output) { observe(print(strftime(input$time1, "%T"))) observe(print(strftime(input$time4, "%R"))) } shinyApp(ui,server)
I'm getting this message after running the code:
Listening on http://127.0.0.1:3378 Warning: Error in as.POSIXlt.default: do not know how to convert 'x' to class “POSIXlt” [No stack trace available] Warning: Error in as.POSIXlt.default: do not know how to convert 'x' to class “POSIXlt” [No stack trace available]
Can you help me with this?
The text was updated successfully, but these errors were encountered: