Bearloga has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/356473 )
Change subject: Use new path ...................................................................... Use new path Bug: T166724 Change-Id: I8657d66daab1a9f9f64ffa8187b24062e0755e4c --- M README.md M utils.R 2 files changed, 8 insertions(+), 10 deletions(-) Approvals: Bearloga: Verified; Looks good to me, approved diff --git a/README.md b/README.md index e3693c5..5ce05f6 100644 --- a/README.md +++ b/README.md @@ -1,22 +1,20 @@ # Wikidata Query Service (WDQS) Dashboard -This project is part of the [Discovery Dashboards](http://discovery.wmflabs.org/) project. +This project is part of the [Discovery Dashboards](https://discovery.wmflabs.org/) project, using datasets publicly available at [analytics.wikimedia.org/datasets/discovery](https://analytics.wikimedia.org/datasets/discovery/). For more information on the datasets, refer to [README on the GitHub mirror](https://github.com/wikimedia/wikimedia-discovery-golden/blob/master/docs/README.md). ## Quick start Install the dependencies: -``` -$ R -R> install.packages(c('reshape2', 'dplyr', 'devtools')) -R> devtools::install_git('https://gerrit.wikimedia.org/r/wikimedia/discovery/polloi') +```R +install.packages(c("devtools", "shiny", "reshape2", "data.table")) +devtools::install_git("https://gerrit.wikimedia.org/r/wikimedia/discovery/polloi") ``` -Run the server: +Run the app: -``` -$ R -R> shiny::runApp(launch.browser = 0) +```R +shiny::runApp(launch.browser = 0) ``` Please note that this project is released with a [Contributor Code of Conduct](CONDUCT.md). By participating in this project you agree to abide by its terms. diff --git a/utils.R b/utils.R index 841c251..19579a4 100644 --- a/utils.R +++ b/utils.R @@ -1,7 +1,7 @@ library(magrittr) read_wdqs <- function() { - data <- polloi::read_dataset("discovery/wdqs/basic_usage.tsv", col_types = "Dclli") %>% + data <- polloi::read_dataset("discovery/metrics/wdqs/basic_usage.tsv", col_types = "Dclli") %>% dplyr::arrange(date) wdqs_visits <<- data %>% dplyr::filter(path == "/" & http_success) %>% -- To view, visit https://gerrit.wikimedia.org/r/356473 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I8657d66daab1a9f9f64ffa8187b24062e0755e4c Gerrit-PatchSet: 1 Gerrit-Project: wikimedia/discovery/twilightsparql Gerrit-Branch: master Gerrit-Owner: Bearloga <mpo...@wikimedia.org> Gerrit-Reviewer: Bearloga <mpo...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits