error when I save hubs
I got an error when I run the function 'write_hub' function in R3.6.1.
However, the files are exported normally in the folder. However, in this case, the "DATASET_HEATMAP" annotation file did not work properly when imported into the iTOL. And the error information was as follows:

Could you share an example file of DATASET_HEATMAP without data part?
I tested the file and get the same error information.
I opened the file by TextEdit in macOS and copied the content. And I use Vim to write a new txt file by parsing the copied strings.
The new file worked.
I think the reason is the dependent function(might be write.table) in R3.6.1 is different from R4.
issue_23.txt
Is write_unit also not work for DATASET_HEATMAP?
When I used the function 'write_unit' to export the DATASET_HEATMAP alone, the output file is a temporary file in a non-plain text format. I got an error when I upload the file into iTOL.
The function I used is write_unit(unit_8,tempfile()).
And here is the output file.

When I used the function 'write_unit' to export the DATASET_HEATMAP alone, the output file is a temporary file in a non-plain text format. I got an error when I upload the file into iTOL.
The function I used is
write_unit(unit_8,tempfile()). And here is the output file.![]()
How about change the file name ending with .txt? and try again?
I found the CR and LF are specific in the Windows environment. https://knowledge.digicert.com/solution/vmc-convert-cr-lf-to-lf-before-submitting-svg.html#:~:text=In%20Notepad%2B%2B%20go%20to,the%20CR%20LF%20characters%20visually.
Try to cover them in Unix format might work.
Please help me to check if write_hub works in itol.toolkit v1.1.2 under R 3.6.1?