r - 从R中的flextable中的超链接单元格中删除下划线
问题描述
我正在使用flextable
andofficer
将带有超链接单元格的表格写入 PowerPoint 幻灯片,但我不知道如何删除 URL 中的下划线。这是我的代码:
library(officer)
library(flextable)
library(magrittr)
# Make the table
no_ul <- fp_text(underlined = FALSE)
ft <- data.frame(x = "Hello", link = "www.google.com") %>%
flextable(col_keys = "x") %>%
compose(j = 1,
value = as_paragraph(hyperlink_text(x = x, url = link, props = no_ul))
)
# Add to a slide
my_pres <- read_pptx() %>%
add_slide() %>%
ph_with(value = ft, location = ph_location_type(type = "body"))
print(my_pres, "~/Desktop/flex_example.pptx")
当我打开“flex_example.pptx”时,这是表格:
怎么去掉超链接的下划线???我希望underlined = FALSE
能做到,但没有运气!
先感谢您!!!!
解决方案
推荐阅读
- python-3.x - 使用 Python 从 Adobe Signed(电子签名)Acroforms 中提取表单字段数据
- fastlane - 如何使用 Fastlane 提交到应用商店和 Testflight External Group?
- php - 如何将参数传递给刀片或 {{ }}?
- android - 恢复后显示主屏幕的 Flutter 应用程序
- java - 无法删除 Spring Kafka 日志记录
- java - 一对多在 JPA CriteriaBuilder 中查找所有不包含特定值的 id
- reactjs - 传递 PatientId 的值时未定义
- java - 如何在 Flutter/Java 中显示 Emojis 和 UTF-8 文本
- javascript - 车身高宽为100vh;并且其中的 div 具有 100vh 或 100% 的宽度,但它没有触及边缘?为什么
- sharepoint-online - SharePoint Online CSOM 自定义应用程序身份验证停止工作