我正在使用Windows 10和Rstudio,并尝试查看plotly库但我不断收到错误:setwd(dir)中的错误:无法更改工作目录 .

例如:

libray(plotly)

     plot_ly(y = rnorm(50), type = "box", boxpoints = "all", jitter = 0.3,
        +         pointpos = -1.8)

        Error in setwd(dir) : cannot change working directory

        > getwd()
        [1] "C:/Users/me/Documents/R"
        >

知道怎么解决这个/为什么会这样?