tt: Track Task (*tt*)

Description Usage Arguments Examples

Description

Track a task by using tt().

Usage

1
2
tt(..., task = NULL, s = NULL, e = NULL, lbl = NULL, proj = NULL,
  info = NULL, write = TRUE)

Arguments

...

a string that allows for a shorthand means to track time for some task.

task

the task description.

s

the start time for the task. Must be in the ISO date/time format of YYYY-MM-DD HH:MM.

e

the end time for the task. Must be in the ISO date/time format of YYYY-MM-DD HH:MM.

lbl

a label to use for the event.

proj

project information for the event.

info

information pertaining to the event.

write

a logical value indicating whether the tracked task entry should be written to disk.

Examples

 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
## Not run: 
# Add a tracked task using `tt()`; it will
# be committed to the ttt_dir; information
# on the tracked task will be echoed back
tt(
  task = "Description of the task",
  s = "2018-05-24 12:30",
  e = "2018-05-24 13:00",
  lbl = "label",
  proj = "project_name",
  info = "Any additional information")
#> tracked task entry
#> ------------------
#> t:  Description of the task
#> s:  2018-05-24 11:30
#> e:  2018-05-24 12:00
#> l:  label
#> p:  project_name
#> i:  Any additional information

# We can also use the shorthand notation
tt("
t: Description of the task;
s: 2018-05-24 11:30;
e: 2018-05-24 12:00;
l: label;
p: project_name;
i: Any additional information
")
#> tracked task entry
#> ------------------
#> t:  Description of the task
#> s:  2018-05-24 11:30
#> e:  2018-05-24 12:00
#> l:  label
#> p:  project_name
#> i:  Any additional information

## End(Not run)

rich-iannone/ttt documentation built on May 28, 2019, 9:51 a.m.