if (FALSE) {
options(toggl_api_token = "XXXXXXXX")# set your toggl api token here
toggl_create(duration=1200)
toggl_create( description="description",
start=now(),
pid = get_project_id(project_name = "projectname",
create=TRUE,client = "client"),
duration=1000,
api_token=get_toggl_api_token())
}
Run the code above in your browser using DataLab