Published July 17, 2025 | Version v1.1.0
Software Open

agroscope-ch/srppp: v1.1.0 - R package to deal with XML dumps of the Swiss Register of Plant Protection Products

  • 1. Agroscope, Switzerland
  • 1. ROR icon Agroscope

Description

This version (v1.1.0, also released to the Comprehensive R Archive Network) of the R package srppp reliably reads in XML files as previously published by the Swiss Federal Office of Agriculture (FOAG) which are now published by the Federal Food Safety and Veterinary Office (FSVO). The current description given in the DESCRIPTION file is reproduced below:

"Generate data objects from XML versions of the Swiss Register of Plant Protection Products (SRPPP). An online version of the register can be accessed at https://www.psm.admin.ch/de/produkte. There is no guarantee of correspondence of the data read in using this package with that online version, or with the original registration documents. Also, the Federal Food Safety and Veterinary Office, coordinating the authorisation of plant protection products in Switzerland, does not answer requests regarding this package."

The README contains the following information:

Installation from CRAN

install.packages("srppp")

Installation of the latest development code

install.packages("srppp",
  repos = c("https://agroscope-ch.r-universe.dev", "https://cran.r-project.org"))

Documentation

An online version of the documentation of the current development version of the package is available on github.

See also

You may also be interested in our agroscope-ch/srppphist package containing historical registration data starting from 2011.

Finally, the following items from the NEWS file document the changes since version 1.0.1:

  • Example code and vignettes: To satisfy CRAN policy, fall back to use the register version distributed as test data with the package (see below) in case downloading or reading from the standard URL fails, instead of throwing an error. This makes the check process on CRAN robust against server outage or a changed URL.
  • Include information on the completeness of the effect against each target organism in the column type of the pests table of the srppp_dm object. Possible types are PEST_FULL_EFFECT, PEST_PARTIAL_EFFECT and PEST_SIDE_EFFECT. In the obligations table, include a column varying_effect, that contains TRUE in case the obligation text indicates that a full effect has not been demonstrated in all cases.
  • R/resolve_cultures.R: Function to expand a dataframe with culture names at the lowest level (leafs) of a culture tree constructed by srppp_dm.
  • Add a culture tree as a Node object from the data.tree package as attribute to srppp_dm objects and show it in the main vignette.
  • Remove the vignette intended for JOSS, as it was rejected there
  • Remove duplicate ingredient entries for the same substance in the same product (issue #6)
  • inst/testdata/: Add the zipped XML from 16 December 2024 for testing purposes and test the resulting srppp_dm object for referential integrity
  • srppp_dm(): Add argument verbose with default TRUE.

Files

agroscope-ch/srppp-v1.1.0.zip

Files (2.5 MB)

Name Size Download all
md5:eefbba1259c6dfefe169484f609e32e2
2.5 MB Preview Download

Additional details

Related works