Create an XML file with an invalid structure for example <?xml version="1.0" encoding="UTF-8"?>
Open the file with xml2::read_xml() command
Expected behavior:
an error is displayed
the process is terminated
Actual behavior:
an error is displayed
the input XML file is locked (can't be modified or deleted) until R session is restarted (the process seems to continue in the background in a separate thread)
if you keep calling xml2::read_xml() the R studio will eventually crash.
Steps to reproduce
Expected behavior:
Actual behavior: