• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

privefl/rmarkdown-website-template: Template for creating your website with R ma ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

privefl/rmarkdown-website-template

开源软件地址(OpenSource Url):

https://github.com/privefl/rmarkdown-website-template

开源编程语言(OpenSource Language):


开源软件介绍(OpenSource Introduction):

Make your website with R Markdown in minutes

This is a template (and tutorial) for creating your website with R Markdown in minutes.

The official document from RStudio can be found here.

Procedure

Prerequisites

  • Make sure that you have the latest versions of R, RStudio and package rmarkdown. I had problems of encoding because of that.

  • Make sure that you have enabled Git in RStudio. More information can be found there.

  • You need a GitHub account.

Make the first version of your website

  • Fork this repo (top-right) and rename it to be 'YOURGITHUB.github.io' (in Settings of your brand new repo).

  • Get the link from cloning the repo. Use the green button "Clone" and make sure you use SSH, not HTTPS. Then, go to RStudio, create a New Project > Version Control > Git and copy this link. You have cloned your new repo as an R project.

  • Build the website by running rmarkdown::render_site(encoding = "UTF-8") or just Ctrl/Cmd + Shift + B.

  • Commit and push everything from RStudio.

  • Go see your new website at https://YOURGITHUB.github.io/index.html.

Change the content of your website

  • Modify _site.yml, index.Rmd, about.Rmd, cv.Rmd and CV.pdf with your own content.

  • Build your website again. At any moment, you can preview your website locally, by rendering your site and viewing any of your local html file in your Web Browser.

  • Commit and push everything from RStudio.

  • Go see your new website with your own content at https://YOURGITHUB.github.io/.

The blog part

For now, the 'Blog' link is giving a 404 page.

If you want to add a static blog to your webpage, go there.

Two examples

You can see for example

Conclusion

As a reminder, all credit goes to the geniuses at RStudio (thanks also to GitHub pages). I just made some minor modifications and made a tuto about how to use all this together.

If anything is false or not clear enough, feel free to contact me or open an issue. If it is an issue only related with R Markdown, you'll find a better answer posting there.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
seth-brown/formd: A Markdown formatting tool发布时间:2022-08-18
下一篇:
kzykhys/Ciconia: A New Markdown parser for PHP5.4发布时间:2022-08-18
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap