awalker89 / openxlsx

R package for .xlsx file reading and writing.
Other
364 stars 79 forks source link

hasComment seems incorred in loadWorkbook #431

Open RichardRedding opened 6 years ago

RichardRedding commented 6 years ago

The issue was raised on stack overflow:

https://stackoverflow.com/questions/47850646/trouble-with-openxlsx/52969976#52969976

The issue seems to be that loadWorkbook contains the following:

hasComment <- sapply(drawXMLrelationship, length) > 0

When surely it should be:

hasComment <- sapply(commentXMLrelationship, length) > 0