文件已打开且未在 R 中加载

File is open and doesn't load in R

我正在尝试加载 xlsx 列表,但文件已打开且未在 R 中加载。

代码:

dados_pp_master[[i]] <- data.frame(read_excel(arquivo_caracter[i], sheet = "PP Master",skip = 1, .name_repair = "minimal")

日志:

Error: Evaluation error: zip file 'V:/file/~$Schedule_3.xlsx' cannot be opened.

有什么方法可以加载打开的 xlsx 文件吗?

文件路径开头的 ~$ 是否意味着您只使用更改的缓存版本?我很确定你不能用 Excel 本身打开这个特定文件,只是因为它不是“普通”excel 文件。该上下文中的错误消息很有意义。