From b80d394623ebdc8f409437e7038810dfd4282972 Mon Sep 17 00:00:00 2001 From: Henrique Sposito Date: Tue, 3 Sep 2024 16:50:10 +0200 Subject: [PATCH] Updated `open_codebook()` helper function to rely on develop branch on GitHub --- NEWS.md | 3 ++- R/utils.R | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/NEWS.md b/NEWS.md index ec19231b..1c448b23 100644 --- a/NEWS.md +++ b/NEWS.md @@ -5,13 +5,14 @@ ## Package - Updated documentation for `get_urgency()` to include more details about urgency scores -- Updated internal data and added a data raw folder to increase transparency +- Updated internal data and data raw files to increase transparency ## Functions - Updated `get_urgency()` and `gather_topics()` to open codebooks for urgency or topic when no arguments are declared - Updated urgency scores in `get_urgency()` according to survey results. - Added `sim_urgency()` function to simulate urgent priorities +- Updated `select_priorities()` to be more strict and accurate about selection of priorities # poldis 0.1.1 diff --git a/R/utils.R b/R/utils.R index f10dfd73..9627be2f 100644 --- a/R/utils.R +++ b/R/utils.R @@ -13,7 +13,7 @@ thisRequires <- function(pkgname){ # Helper function to get urgency or topics codebook. open_codebook <- function(codebook = "urgency") { thisRequires("cli") - url <- "https://github.com/henriquesposito/poldis/inst" + url <- "https://github.com/henriquesposito/poldis/tree/develop/inst" if (codebook == "urgency") { tryCatch({ utils::browseURL(paste0(url, "/urgency_codebook.pdf"),