Bearloga has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/356469 )
Change subject: Use new path ...................................................................... Use new path Bug: T166724 Change-Id: I01378d734655e7dd423c995d2665311589cfe2a8 --- M README.md M utils.R 2 files changed, 9 insertions(+), 11 deletions(-) Approvals: Bearloga: Verified; Looks good to me, approved diff --git a/README.md b/README.md index 07d9ccd..6687c11 100644 --- a/README.md +++ b/README.md @@ -1,22 +1,20 @@ # External Referrals 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', 'devtools', 'data.table')) -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 3f00556..2169808 100644 --- a/utils.R +++ b/utils.R @@ -4,7 +4,7 @@ read_traffic <- function() { # Read in the initial data. - data <- polloi::read_dataset(path = "discovery/external_traffic/referer_data.tsv", col_types = "Dlccci") %>% + data <- polloi::read_dataset(path = "discovery/metrics/external_traffic/referer_data.tsv", col_types = "Dlccci") %>% dplyr::filter(!is.na(referer_class), !is.na(pageviews)) %>% dplyr::mutate( search_engine = dplyr::if_else(search_engine == "none", "Not referred by search", search_engine), @@ -63,7 +63,7 @@ read_nonbot_traffic <- function() { # Read in the initial data. - data <- polloi::read_dataset(path = "discovery/external_traffic/referer_nonbot_data.tsv", col_types = "Dlccci") %>% + data <- polloi::read_dataset(path = "discovery/metrics/external_traffic/referer_nonbot_data.tsv", col_types = "Dlccci") %>% dplyr::filter(!is.na(referer_class), !is.na(pageviews)) %>% dplyr::mutate( search_engine = dplyr::if_else(search_engine == "none", "Not referred by search", search_engine), -- To view, visit https://gerrit.wikimedia.org/r/356469 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I01378d734655e7dd423c995d2665311589cfe2a8 Gerrit-PatchSet: 1 Gerrit-Project: wikimedia/discovery/wonderbolt 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