我正在编写代码以进行ftp上传。问题在于该站点的密码在密码中嵌入了“ @”,R似乎认为其后是服务器名称。我怎样才能让R逐字地对待@。请注意,尝试使用\ @并无效
protocol <- "ftp"
server <- "xxxxx.xxx.com"
userpwd <- "xxxxxxx:7gu%S@fo64CEM4sl"
outFilename <- "/content_engagement.csv"
inFilename <-
“ // cnd1 / database / MatherContentEngagement / APIUploads / content_engagement.csv”
url <- paste0(protocol, "://",userpwd,"@", server, outFilename)
ftpUpload(inFilename,url)
函数错误(类型,msg,asError = TRUE): 无法解析主机:fo64CEM4sl@xxxxx.xxx.com