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.
如何将帮助输出文件保存到 txt 文件中?
write(help(reshape),file="/home/debian/test")
不起作用。
从以下内容中挖掘和改编utils:::print.help_files_with_topic:
utils:::print.help_files_with_topic
file <- help("reshape") pkgname <- basename(dirname(dirname(file))) temp <- tools::Rd2txt(utils:::.getHelpFile(file), out = tempfile("Rtxt"), package = pkgname) file.copy(temp,"~/test.txt")