Skip to content
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

Page acceess count on shinyapps.io #375

Closed
patriciamar opened this issue Apr 6, 2018 · 2 comments
Closed

Page acceess count on shinyapps.io #375

patriciamar opened this issue Apr 6, 2018 · 2 comments

Comments

@patriciamar
Copy link
Owner

Any ideas how to make "Hits" count working properly on shinyapps.io?

@adelahladka
Copy link
Collaborator

I think it is connected with this: https://shiny.rstudio.com/articles/share-data.html

@adelahladka
Copy link
Collaborator

Something like following code need to be added into server for shinyapps.io

library(RAmazonS3)

counter <- getFile("rstudio-public", "counter.Rdata")

output$counter <- renderText({
  counter <- counter + 1
  addFile(I(counter), "rstudio-public", "counter.RData")
  paste0("Hits:", counter)
})

However, package RAmazonS3 cannot be currently installed. So the first option is not applicable.

I'll try to look at other options.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants