https://github.com/kwb-r/fakin.blog
Blog on FAKIN project status
https://github.com/kwb-r/fakin.blog
hugo-site project-fakin publication r r-blogdown research-data-management rstats
Last synced: 5 months ago
JSON representation
Blog on FAKIN project status
- Host: GitHub
- URL: https://github.com/kwb-r/fakin.blog
- Owner: KWB-R
- License: mit
- Created: 2017-05-29T12:17:48.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-11T18:54:29.000Z (over 7 years ago)
- Last Synced: 2025-02-17T21:46:08.497Z (8 months ago)
- Topics: hugo-site, project-fakin, publication, r, r-blogdown, research-data-management, rstats
- Language: HTML
- Homepage: http://kwb-r.github.io/fakin.blog
- Size: 8.72 MB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Blog on FAKIN project status
## How to update the blog
### Step 1: Install blogdown package
```r
# Install the devtools package
if (! require("devtools")) {install.packages("devtools", repos = "https://cloud.r-project.org")
}# Install the blogdown package
devtools::install_github("rstudio/blogdown")# Install hugo
blogdown::install_hugo()
```### Step 2: Create new knowledge post
Create an Rmarkdown post similar to **[2017-05-19-fakin-project-started.Rmd](content/post/2017-05-19-fakin-project-started.Rmd)** in directory `content/post`.
### Step 3: Update the blog
To do so run the following R code:
```r### Delete "public" folder (i.e. in case of older website builds)
unlink("public", recursive = TRUE)### Build site
blogdown::build_site(local = FALSE)### Copy files from public folder (please do not COMMIT!!) into docs folder
### which is required to work for GITHUB (all changed content of the docs folder
### needs to be committed to Github for the blog to be updated)
file.copy(from = "public/.", to = "docs", overwrite = TRUE, recursive = TRUE)
```If completed finally commit (vit GIT/Subversion) the changed files in the
following two directories:- `content/post`
- `docs`and you are done.
### Step 4: Visit the updated blog
The content of the updated blog is available at [http://kwb-r.github.io/fakin.blog](http://kwb-r.github.io/fakin.blog).