Hal science is a French open archive for research institute. We develop this R package to gather and analyse statistics for document in that platform. Its was primarly designed to analyse publications from Management of Diadromous Fish in their Environment, OFB, INRAE, Institut Agro, UNIV PAU & PAYS ADOUR/E2S UPPA portal but can be used to analyse any other HAL portal.
This package was develop thanks to {fusen} R package.
Code of Conduct
Please note that the bibliometrics4hal project is released with a Contributor Code of Conduct and its French Version. By contributing to this project, you agree to abide by its terms.
Installation
You can install the development version of {bibliometrics4hal} like so:
remotes::install_git("https://forgemia.inra.fr/pole-migrateurs/bibliometrics4hal", ref = "main")
Principle
We are interested by the number of Views and Downloads of a document in HAL portal. It is on the HTML page but not reachable from HAL API (Confirmed by HAL support the 08/11/2023).

Number of Views and Downloads of a HAL document
These information are accessible from the HTML code.

Number of Views and Downloads of a HAL document - HTML code
Example
In this example we just take one HAL pulication and retrive the number of Views and Donwloads.
library(bibliometrics4hal)
## basic example code
html_page <- load_hal_html(document_id = "hal-03866335")
retrieve_metrics(html_page)
#> Views Downloads
#> 20 16