View source: R/insert_additional_metadata.R
insert_additional_metadata | R Documentation |
Sometime, for various reasons, additional metadata just needs to be inserted into EML documents manually. This is for quickly doing that in R. The function adds a snippet of plain text EML after a specified line number in the EML file. A pattern can also be defined for grep-ing the line number to append to (e.g. additional metadata needs to be inserted after a specific line). The defaults reflect BLE's need to add a snippet to aid replication of metadata to the Arctic Data Center that for a certain reason cannot be added via our normal means (the EML R package).
insert_additional_metadata(file, pattern = NULL, addition = NULL, after)
file |
(character) Path to EML file. Function will also write to this same file. |
pattern |
(character) Grep pattern. |
addition |
(character) Plain text of EML snippet to insert. Defaults to an "additionalMetadata" node pertaining to replication I won't paste here. |
after |
(numeric) A line number to append after. Only comes into play if pattern is not found. No defaults. |
Nothing in the R environment, but a file with the snippet inserted where specified. File will remain the same
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.