read.table() and read.csv both Error in Rmd
问题 I want to read a txt in Rmd --- title: "Untitled" output: html_document --- ```{r} country <- read.table("country.txt") country ``` It show error: processing file: Preview-2878539db5c7.Rmd Quitting from lines 6-8 (Preview-2878539db5c7.Rmd) Error in file(file, "rt") : cannot open the connection Calls: <Anonymous> ... withCallingHandlers -> withVisible -> eval -> eval -> read.table - > file Execution halted But I can run code in R console successfully > country <- read.table("country.txt") >