2021-08-26 Rstudioでソースのあるディレクトリに移動する方法 GNU R Rstuidoを使っている人限定: setwd(dirname(rstudioapi::getActiveDocumentContext()$path)) 参考文献 stackoverflow.com