gpt4 book ai didi

r - R打开时打开pdf文件

转载 作者:行者123 更新时间:2023-12-01 05:12:17 25 4
gpt4 key购买 nike

我使用 pdf("tree.pdf") 写入 pdf 文件
我使用 dev.off() 关闭 pdf

显然,当我尝试打开 tree.pdf 时当我在 R 中时,我收到错误消息:

There was an error opening this document.
This file is already open or in use by another application.



因此,我必须关闭 R 才能观看我创建的文件。我该怎么做才能在不关闭 R 的情况下观看文件?

最佳答案

在 Windows 8 上,它的工作原理如下:

system("taskkill /f /im AcroRd32.exe")

关于r - R打开时打开pdf文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23756155/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com