cmd文本编辑与查看

2020-04-10  本文已影响0人  嗒嘀嗒嗒嘀嗒嘀嘀
# 用echo.xxx  >将内容重定向到 .Rprofile文件
>echo.options(BioC_mirror='https://mirrors.tuna.tsinghua.edu.cn/bioconductor') > .Rprofile
# 用echo.xxx >>将内容追加到文件下一行
>echo.utils::setRepositories(ind=1:2) >> .Rprofile
# 用echo. >>加入空行
>echo. >> .Rprofile
# 用echo xxx >>将文本不换行直接追加到后面
>echo options(repos = c(CRAN = "https://mirrors.tuna.tsinghua.edu.cn/CRAN/")) >> .Rprofile
# 查看写入的内容
>type .Rprofile
options(BioC_mirror='https://mirrors.tuna.tsinghua.edu.cn/bioconductor')
utils::setRepositories(ind=1:2)

options(repos = c(CRAN = "https://mirrors.tuna.tsinghua.edu.cn/CRAN/"))

-参考文章
windows cmd编辑文本

上一篇下一篇

猜你喜欢

热点阅读