图片Upload_via ubuntu中的本地驱动器

时间:2016-06-18 02:03:48

标签: rspec watir-webdriver

我尝试使用以下命令上传或打开文件,但它无效:

if(!require("pacman")) install.packages("pacman")
pacman::p_load(rvest, dplyr, xml2)
uebergewicht <- read_html("https://de.wikipedia.org/wiki/%C3%9Cbergewicht")


uebergewicht <- uebergewicht %>%
    html_nodes("table") %>%
    .[[2]] %>% # table number two at link
    html_table(fill=TRUE)

for (i in 2:5){
    for (j in 2:6){
        uebergewicht[j,i] <- as.numeric(uebergewicht[j,i])
    }
}

1 个答案:

答案 0 :(得分:2)

“c:/foo/bar.txt”&lt;这看起来像一个Windows路径。你的主题声明你在Ubuntu上。删除c:并查看是否有帮助。如果您只是尝试从工作目录中的foo目录中获取应该有效的文件bar.txt。