You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The goal of `dev.to.ol` is to help R users publish to dev.to
24
24
25
25
## Installation
26
26
27
-
You can install the unreleased version of dev.to from [github](www.github.com) with:
27
+
You can install the dev.to.ol from [github](www.github.com) with`remotes`:
28
28
29
29
```r
30
30
remotes::install.github("DaveParr/dev.to.ol")
31
31
```
32
32
33
-
## Example
33
+
## Workflow
34
34
35
-
This is a basic example which shows you how to solve a common problem:
35
+
### Create your article
36
+
37
+
The `create_new_article` function will give you the front mattter boilerplate for an article `.Rmd` file. Optionally supplying a file name will create a new file with the front matter at the start.
38
+
39
+
```r
40
+
create_new_article(title="my title")
41
+
```
42
+
43
+
### Write your article!
44
+
45
+
This is the fun bit. Mark your great ideas down in an `.Rmd`!
46
+
47
+
### Post your article
48
+
49
+
Once the `.Rmd` is written, you can post it to dev.to with `post_new_article`
36
50
37
51
```r
38
-
library(dev.to.ol)
52
+
post_new_article("./my-great-article.Rmd")
53
+
```
39
54
40
-
post_new_article("./articles/my_article.Rmd")
55
+
### Check your articles
56
+
57
+
There are two functions to check the posted articles on dev.to, published and unpublished. Both will return a 'tidy' data set by default.
# user <list>, flare_tag <list>, cover_image <chr>
82
+
```
83
+
84
+
### Update your article
85
+
86
+
If you notice you've made a mistake, you can get the article id from `get_users_articles()`, and use that to send the new version of the `.Rmd` to dev.to
0 commit comments