Description Usage Arguments Details Examples
View source: R/write_scrape_test_searches.R
Takes groups of search terms and translates them into target language using the Google Translate API. This function is intended for use inside write_search(), not as a standalone function.
1 2 3 4 5 6 | translate_search(
search_terms,
target_lang,
source_lang = "en",
API_key = API_key
)
|
search_terms |
a character vector of search terms |
target_lang |
a character vector of the language(s) to translate the search to |
source_lang |
a character vector of the language the search terms are currently in |
API_key |
an API key for Google Translate |
Users need to sign up for an API key for Google Translate separately from litsearchr.
1 | ## Not run: translate_search(search_terms=c("black-backed woodpecker"), target_lang="fr")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.