Get Blogdown

blogdown with rstudio

http_proxy=http://127.0.0.1:1081
https_proxy=http://127.0.0.1:1081
options("repos" = c(CRAN="https://mirrors.tuna.tsinghua.edu.cn/CRAN/"))

Rstudio中输入中文

将相关插件连接到/usr/lib/rstudio/plugins/platforminputcontexts/文件夹内,在shell中执行如下命令:

sudo ln -s /usr/lib/$(dpkg-architecture -qDEB_BUILD_MULTIARCH)/qt5/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so /usr/lib/rstudio/plugins/platforminputcontexts

在/usr/lib/rstudio/bin的路径下找到qt.conf文件(注:可能不同版本路径会有所差别需要注意一下),添加刚才链接使用的路径:

[Paths]
Prefix = /usr/lib/rstudio/
Prefix = ../

参考:

  1. https://cosx.org/2018/01/build-blog-with-blogdown-hugo-netlify-github/
  2. https://bookdown.org/yihui/blogdown/
  3. https://help.github.com/cn/github/authenticating-to-github/connecting-to-github-with-ssh