Consider adding a warning to write_eml
generates random packageId
and system
values
#293
Milestone
write_eml
generates random packageId
and system
values
#293
Stemming from #292,
Right now, when an
eml
object is written to disk withwrite_eml
without apackageId
,write_eml
fills inpackageId
with a UUID and setssystem
touuid
:EML/R/write_eml.R
Lines 27 to 31 in 6c2911c
In #292, this created some understandable confusion for @scelmendorf because it meant that
eml_validate
's behavior was inconsistent depending on whether the object was written to disk first or not.In #292, @cboettig wrote:
Also in #292, @mobb wrote:
I agree with the above and it seems we have a consensus but I wanted to file a standalone issue for discussion in case it was needed. Open to comments or suggested wording of the warnings/messages.
I propose:
packageId
is not set whenwrite_eml
is called, issue awarning
.packageId
generated automatically because it was not already set. See ?packageId for more information."?packageId
with more information. TBD. It'd explain how to setpackageId
andsystem
and how to come up with sensible values.The text was updated successfully, but these errors were encountered: