My work path is obviously not wrong(This can be seen in the screenshot), but it is running with an error, why is this?Could it be because there is this file in another folder?

、、、
library(tidyverse)
library(dplyr)
setwd('D:/Users/GBD数据')
getwd()#修改成你自己的文件夹路径
data <- read.csv('IHME-GBD_2021_DATA-b998c138-1',header = T)
、、、

错误于file(file, "rt"): 无法打开链结
此外: 警告信息:
In file(file, "rt") :
无法打开文件'IHME-GBD_2021_DATA-b998c138-1': No such file or directory

You need to include the file extension in the file name. Is the file named IHME_GBD_2021_DATA-b998c138-1.csv? You can set Windows to display the file name extension.

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.