Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试打开设备,但出现以下错误:
> trellis.device(device="pdf", filename="runtime.pdf") Error in device.call(...) : unused argument (filename = "runtime.pdf")
当我尝试用
pdf(文件名="c:/R/FSM/runtime.pdf")
是否有我需要加载到库中的包?
正确的论点是file而不是filename,如pdf(file = "myfile.pdf")。其他打开新设备的函数确实使用了该filename参数,例如jpeg(),因此您需要查看帮助文件。通常,返回的错误Error in ...: unused argument表明函数调用中提供的参数不是函数的一部分。
file
filename
pdf(file = "myfile.pdf")
jpeg()
Error in ...: unused argument