是否可以在字符串中间创建超链接?我可以使用makeHyperlinkString()来使整个字符串成为链接。我用makeHyperlink()尝试过,但是没有得到想要的结果。
library(adapr)
library(openxlsx)
wb <- createWorkbook()
addWorksheet(wb, "sheet 1")
writeData(wb, "sheet 1", paste("some text",
makeHyperlink("www.google.co.uk","click here to my path"),
"some more text"), startCol = 1,
startRow = 1)
saveWorkbook(wb, file = "test.xlsx", overwrite = TRUE)