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.
我正在尝试使用 grep 和 setwd() 将文本文件输入到 R 中(我可以使用其他方法,我不确定是什么,我才刚刚开始学习 R)。
我正在为第三方服务器编写一个 json 模板,该服务器将 docker 映像作为环境运行,但目前存在无法更改工作目录的错误。还有其他方法可以获取此文件吗?
如果您尝试执行以下操作:
setwd('/tmp') read.csv('hello.csv')
你可以没有setwd:
setwd
read.csv('/tmp/hello.csv')