library(magrittr)
## Select fields
hal1 <- hal_api() %>% hal_sort("docid")
hal1$sort
## Update query
hal2 <- hal_sort(hal1, "producedDate_tdate", decreasing = TRUE)
hal2$sort
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.