From f34b0b4aa43d1968f56cd01a0d524ae57e0caaca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABlle=20Salmon?= Date: Thu, 12 Oct 2023 17:17:33 +0200 Subject: [PATCH] refactor: lint 1 script --- R/spq_language.R | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/R/spq_language.R b/R/spq_language.R index d84d865..00f4145 100644 --- a/R/spq_language.R +++ b/R/spq_language.R @@ -1,6 +1,7 @@ #' Get labels in a specified language (apply only to Wikidata) #' @param .query the query -#' @param language the language in which the labels will be provided (defaults to "en" for English). See complete list of Wikimedia language codes [here](https://www.wikidata.org/wiki/Help:Wikimedia_language_codes/lists/all). You can also set language to "auto" and then the Wikidata SPARQL engine will try and detect your language automatically. Specifying several languages will return labels with languages following the priority specified (e.g. with language="fr,en", the label will be returned preferentially in French, or, if there is not French label for the item, in English). +#' @param language the language in which the labels will be provided +#' (defaults to "en" for English). See [complete list of Wikimedia language codes](https://www.wikidata.org/wiki/Help:Wikimedia_language_codes/lists/all). You can also set language to "auto" and then the Wikidata SPARQL engine will try and detect your language automatically. Specifying several languages will return labels with languages following the priority specified (e.g. with language="fr,en", the label will be returned preferentially in French, or, if there is not French label for the item, in English). #' @return A query object #' @export #' @keywords internal @@ -10,7 +11,7 @@ #' spq_label(film, .languages = c("fr$", "en$")) %>% #' spq_head(10) spq_language = function(.query = NULL, - language = "en"){ + language = "en") { lifecycle::deprecate_warn( "0.2.0", "spq_language()", "spq_label()", details = "See the `.languages` argument"