Hi everyone
I’m new with ploty, so I use R and I installed ploty, but when I try a sample code
library(plotly)
today <- Sys.Date()
tm <- seq(0, 600, by = 10)
x <- today - tm
y <- rnorm(length(x))
p <- plot_ly(x = ~x, y = ~y, mode = 'lines', text = paste(tm, "days from today"))
# Create a shareable link to your chart
# Set up API credentials: https://plot.ly/r/getting-started
chart_link = api_create(p, filename="timeseries-1")
chart_link
from the website the error is:
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : **
** there is no package called ‘shiny’
So i have installed the shiny package, but nothing works.
When I try to instal, I hve this message
installing source package ‘shiny’ …
** package ‘shiny’ correctement décompressé et sommes MD5 vérifiées
** R
** inst
** preparing package for lazy loading
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
namespace ‘httpuv’ 1.4.1 is being loaded, but >= 1.4.3 is required
ERROR: lazy loading failed for package ‘shiny’
- removing ‘C:/Users/neo13/Documents/R/win-library/3.3/shiny’
Warning messages:
1: l’exécution de la commande ‘“C:/PROGRA~1/R-33~1.0/bin/x64/R” CMD INSTALL -l “C:\Users\neo13\Documents\R\win-library\3.3” “C:/Users/neo13/Documents/R/win-library/3.3/shiny_1.1.0.tar.gz”’ renvoie un statut 1
2: In install.packages(files[tarballs], .libPaths()[1L], repos = NULL, :
l’installation du package ‘C:/Users/neo13/Documents/R/win-library/3.3/shiny_1.1.0.tar.gz’ a eu un statut de sortie non nul
Is somebody can help me please.