R/bdy.setwd.R

Defines functions bdy.setwd

Documented in bdy.setwd

#' Set working directory
#'
#' @param dir directory
#'
#' @export
#'
bdy.setwd <- function(dir){
    command=paste('BaiduPCS-Go.exe cd',dir)
    x <- system(command = command,
                intern = T,show.output.on.console = F)
    Encoding(x) = 'UTF-8'
    cat(paste0(x,collapse = '\n'))
}
yikeshu0611/RBaiduYun documentation built on Feb. 22, 2021, 4:57 a.m.