README.md

RStudio Addin to Post to Qiita

Caution: This package is in the verrry early stages.

Installation

library(devtools)
install_github("yutannihilation/qiitaddin")

Preperation

Qiita access token

See: https://github.com/yutannihilation/qiitr#preperation

Imgur or Gyazo account

Since no method to upload image is provided by Qiita API, this package upload images to Imgur or Gyazo. Though Imgur allows us to upload images anonymously, I recommend you to create an acount on either service, since those images uploaded without the owner cannot be deleted afterwards (as this package won't record the deletehash). You have been warned!

If you will upload many images, I recommend Gyazo, since Imgur has some secret limit rating which you will easily hit.

Usage

After making sure that the target R Markdown file is active, click "Post to Qiita".

You can also type the command in your console.

qiitaddin::qiitaddin_knit("path/to/file.Rmd")

After knitting the document is finished, the preview window appears. Review the document and edit the following items if necessary.

When things are done, click "Done". (If you don't set QIITA_ACCESSTOKEN environmental variable, you will be asked to provide your Qiita access token)

After that, the document is posted to Qiita and you will jump to the page.

Note that there are one important thing you have to be careful about:



yutannihilation/qiitaddin documentation built on May 4, 2019, 7:46 p.m.