I have an input xlsx workbook with many (thousands) internal hyperlinks to many other sheets (in the same workbook). A small, representative example at xlsx image: "A2" links to "linksTab!B3". xlsx file itself here on dropbox.
which I can access (Based on this similar question) using
library(XML)
# rename file to .zip
my.zip.file <- sub("xlsx", "zip", my.excel.file)
file.copy(from = my.excel.file, to = my.zip.file)
# unzip the file
unzip(my.zip.file)
# unzipping produces a bunch of files which we can read using the XML package
# sheet1 has our data
xmlfile <- xmlParse("xl/worksheets/sheet1.xml")
However, the final xml extraction in referenced question output yields an empty output in this case. Digging into the XML sheet1, I found that the links are represented in the xml file as
< hyperlink ref="A2" location="linksTab!B3" tooltip="goto link" display="link" xr:uid="{94...'
How do I extract them?