Skip to content

Create a script to create a links .rmd #413

@SanderDevisscher

Description

@SanderDevisscher

From a template, containing a link to the VBP, for every species on the GRIIS checklist.

  • Create a template, named links_template.txt
  • Create a create_new_links.rmd to create links files when missing from ./HTML_pages/Rmd_files/
  • Create a create_new_links.yaml to trigger the script when GRIIS checklist changes.
  • Create a PR_create_new_links.md

The link to VBP can be created as follows https://natuurdata.inbo.be/bie-hub/species/<gbif_taxonkey>.

create_new_links.rmd should do the following:

  • Read the GRIIS checklist
  • Iterate through the taxonkeys
  • Determine links file is missing (if not missing next())
  • Read the links_template.txt
  • gsub <--TAXONKEY--> with the taxonkey
  • Save as <taxonkey>.txt
  • Copy file to <taxonkey>.rmd
  • remove <taxonkey>.txt

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions