Edit otherEntities
Remove otherEntities
To remove an otherEntity
use the following command. This may be useful if a data object is originally listed as an otherEntity
and then transferred to a dataTable
.
Create otherEntities
If you need to create/update an otherEntity
, make sure to publish or update your data object first (if it is not already on the DataONE MN). Then build your otherEntity
.
Alternatively, you can build the otherEntity
of a data object not in your package by simply inputting the data PID
.
otherEntity <- arcticdatautils::pid_to_eml_entity(mn, "your_data_pid", entityType = "otherEntity", entityName = "Entity Name", entityDescription = "Description about entity")
The otherEntity
must then be set to the EML, like so:
If you have more than one otherEntity
object in the EML already, you can add the new one like this:
Where i
is set to the number of existing entities plus one.
Remember the warning from the last section, however. If you only have one otherEntity
, and you are trying to add another, you have to run: