【发布时间】:2017-06-21 19:38:21
【问题描述】:
我将使用 EDGAR 包在 R 中为几家公司下载 2005 年 10-K。我有一个迷你循环来测试哪个工作正常:
for (CIK in c(789019, 777676, 849399)){
getFilings(2005,CIK,'10-K')
}
但是,每次运行时,我都会收到是/否提示,我必须输入“是”:
Total number of filings to be downloaded=1. Do you want to download (yes/no)? yes
Total number of filings to be downloaded=1. Do you want to download (yes/no)? yes
Total number of filings to be downloaded=1. Do you want to download (yes/no)? yes
如何提示 R 在每次运行时回答“是”?谢谢你
【问题讨论】: