Skip to content

Commit

Permalink
refactor: lint 1 script
Browse files Browse the repository at this point in the history
  • Loading branch information
maelle committed Oct 12, 2023
1 parent 64e82e1 commit f34b0b4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions R/spq_language.R
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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"
Expand Down

0 comments on commit f34b0b4

Please sign in to comment.