Trouble with openxlsx

女生的网名这么多〃 提交于 2019-12-08 06:46:15

问题


When I attempt to load an xlsx file with the loadWorkbook function I receive an error message. I am loading the workbook file from my local working directory and receive the following error message:

Error in grepl(target, commentsXML) : invalid 'pattern' argument

when I execute the basic function: loadWorkbook("template.xlsx") -> wb


回答1:


To me it looks as if it's a bug. If you look at the source on github it has the following line:

hasComment <- sapply(drawXMLrelationship, length) > 0 ## which sheets have a drawing

However, it should be:

hasComment <- sapply(commentXMLrelationship, length) > 0


来源:https://stackoverflow.com/questions/47850646/trouble-with-openxlsx

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!