简体   繁体   English

R将多个超链接写入一个Excel单元格

[英]R write multiple hyperlinks into one excel cell

I'm using R, and would like to write several hyperlinks into one excel cell. 我正在使用R,并且想将多个超链接写入一个excel单元格。 In this cell, labels of these hyperlinks will be comma separated. 在此单元格中,这些超链接的标签将以逗号分隔。 I know a R function xlsx::addHyperlink to write hyperlinks in xlsx, however, I don't find a way to write multiple hyperlinks into one cell. 我知道一个R函数xlsx :: addHyperlink在xlsx中编写超链接,但是,我找不到将多个超链接写入一个单元格的方法。

Could anyone help? 有人可以帮忙吗? Thanks in advance. 提前致谢。

The default nature of Excel is one hyperlink per cell and it is non-negotiable. Excel的默认性质是每个单元格一个超链接,并且这是不可协商的。 That said, there is a workaround but it requires a manual update. 也就是说,有一种解决方法,但需要手动更新。

Over the hyperlink labels you would need to insert a shape (eg box) and set the fill and border options to none and then add the hyperlink to the shape. 在超链接标签上,您需要插入一个形状(例如,框),并将填充和边框选项设置为none,然后将超链接添加到该形状。 I've left the border color on the images to show what I mean. 我在图像上保留了边框颜色以显示我的意思。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM