R中的数据导入但将分隔符从逗号更改为分号

Data Importation in R but change the delimiter from comma to semicolon

我想将我的数据导入中的分隔符从逗号 (,) 更改为分号 (;),当我通过打开文件这样做时,它工作得很好,但是当我想通过代码行加载数据,出现错误enter image description here

尝试不使用 delim=";" 也避免在 delim=";"

之前使用 +

示例:

library(readr)

    example <- read_delim("example.csv", ";", 
        escape_double = FALSE, trim_ws = TRUE)