-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.r
57 lines (43 loc) · 1.63 KB
/
main.r
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
## blogdown
## Packages
## options(repos=structure(c(CRAN="http://ftp.acc.umu.se/mirror/CRAN/"))) ## set dafault repo
## install.packages("blogdown")
## blogdown::install_hugo()
## blogdown::update_hugo()
## install.packages('later')
## Step 1: Make an empty repo on github
## Step 2: Clone empty repo to pc
setwd("/home/eee/e/blog") # Start R in the new empty folder
##setwd("/home/eee/e/ols")
## Step 3: Create site
## blogdown::new_site(theme = "MunifTanjim/minimo") ## Minimo
## Step 4: Edit site content
## Note: Change things in static, content but not in public folder (the latter will be created/updated automatically)
## Note: Cannot push to github from work due to firewall?
## Step 4: Serve Site
getwd()
blogdown::serve_site()
## fixed glibc (mutex) error:
## devtools::install_github("r-lib/later")
## require(later)
## Notes ----------------------------------
## Note: Add .gitignore
## Add .gitignore with below content to include all files
## !*
## *.*~
## Note gitignore .md and .html, png etc
## Note: Use git add --force *
## Note: Use recent HUGO version on netlify deploy settings
## add to config.toml
## [[menu.main]]
## name = "Test"
## weight = -10
## identifier = "Testing"
## url = "https://bookdown.org/yihui/blogdown/workflow.html"
## 2. Perhaps you want to add some content. You can add single files
## with "hugo new <SECTIONNAME>\<FILENAME>.<FORMAT>".
## 3. Start the built-in live server via "hugo server".
## Visit https://gohugo.io/ for quickstart guide and full documentation.
## trying URL 'https://github.com/yihui/hugo-lithium-theme/archive/master.zip'
## Content length 119078 bytes (116 KB)
## downloaded 116 KB