knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
This R package is an interface to todoist - the todo list manager.
Package is still in early development but you can install the latest version using the devtools
package.
# install.packages("devtools") devtools::install_github("karthik/rtodoist")
First you will need to get the API token from your account. If you login to your todoist account, you can find this under Settings > Integrations > API token or by clicking here and scroll to the bottom.
You are recommended that you place your token in the .Renviron
file by adding to it:
TODOIST_API_TOKEN=<INSERT YOUR TOKEN>
The easiest way to access the .Renviron
is to use usethis::edit_r_environ()
.
That way you no longer have to specify a token for any rtodoist
functions. Of course, you can also just specifiy it inline using token=...
.
The rtodoist
R package has a family of functions that can manipulate and view information on projects. These famliy of functions all start with proj_
. E.g. use
proj_add("My awesome project")
to add a new project called "My awesome project". You will need to have your token environment setup for this to work or alternatively if you have your API token string you can supply it to the argument token
.
proj_add("My awesome project", token = "<YOUR TOKEN>")
Other projected related functions include:
library(rtodoist) fns <- ls("package:rtodoist") proj_fns <- fns[stringr::str_starts(fns, 'proj')] proj_fns <- setdiff(proj_fns, "proj_add") cat(paste0(paste0(clisymbols::symbol$bullet, "`", proj_fns, "`"), collapse = "\n\n"), ".")
Similarily, the rtodoist
package has a family of functions to modify and view information on tasks. These functions all start with task_
. E.g. use
task_add(content = "Get rtodoist documentation done.", due_string = "Tomorrow")
to add a task that is due tomorrow.
Other task related functions include:
task_fns <- fns[stringr::str_starts(fns, 'task')] task_fns <- setdiff(task_fns, c("task_add", "task_clean")) cat(paste0(paste0(clisymbols::symbol$bullet, "`", task_fns, "`"), collapse = "\n\n"), ".")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.