setwd(dirname(rstudioapi::getActiveDocumentContext()$path))
切记路径中不能有中文字符!
本文介绍如何在R中使用setwd函数设置当前工作目录,并强调路径中不能包含中文字符。
setwd(dirname(rstudioapi::getActiveDocumentContext()$path))
切记路径中不能有中文字符!
1万+
872

被折叠的 条评论
为什么被折叠?