post2Tistory: Post your Rmd file to Tistory

Description Usage Arguments Value Examples

View source: R/knitr4blog.R

Description

Post your Rmd file to Tistory

Usage

1
2
3
4
5
6
7
8
9
post2Tistory(
  fileName,
  my_blogName,
  token,
  modify = NULL,
  tag = NULL,
  encoding = getOption("encoding"),
  ...
)

Arguments

fileName

the .Rmd file name you want to post to your blog

my_blogName

your blogName xxx from blog address "http://xxx.tistory.com"

token

the token you have obtained from the url generated from token_url_maker function

modify

default value is NULL. When modify set to NULL it means your Rmd will be posted as a new post If you want to modify the existing post, feed the number of the post to the modify variable.

tag

the tag of your Rmd file. you can use multiple tags using "tagA, tagB, tagC"

encoding

switch encoding. defalut option follows system default

...

you can use className = "language-r" option in knitr4blog function

Value

posted blog on your blog

Examples

1
2
3
4
5
6
# fileName should not have blank space
# Assume your file name is "test.Rmd"
# Assume your blog address is "http://issactoast.tistory.com"
my_token <- "your obtained token here"
# post2Tistory("test.Rmd", "issactoast", my_token)
# post2Tistory("test.Rmd", "issactoast", my_token, modify = 42)

issactoast/R4Tistory documentation built on March 17, 2021, 4:16 a.m.