Learn R Programming

togglr

An R and Rstudio wrapper for toggl Api. https://www.toggl.com/

Documentation site: https://thinkr-open.github.io/togglr/

Installation of togglr

From CRAN

install.packages("togglr")

From Github

if (!requireNamespace("devtools")){install.packages("devtools")}
devtools::install_github("ThinkR-open/togglr")

Set toggl Api token

Go on toogl.com website : https://track.toggl.com/profile

togglr::open_toggl_website_profile()

then select and copy your token api at the bottom of the page.

library(togglr)
set_toggl_api_token("your_token_api")

You just need to do this once.

Start the tracking system

Without any parameters it will create a new project using your Rstudio project name.

toggl_start()

By default the client name is “without client” you can choose (and eventualy create a client) by using :

toggl_start(client = "my client")

But you can also choose the task and the project

toggl_start(client = "my client",
            description = "what I'm doing",
            project_name = "my project")

Stop the tracking system

toggl_stop()

Get total time passed on the current project

get_current_duration()# the current track
get_project_task_detail()# all the project (including the current track)

Get all your dashboard

get_dashboard()

Use Rstudio Addins

This package comes with 2 Rstudio addins ‘start toggl’ and ‘stop toggl’, feel free to use keybindings for convenience.

Some other uselfull functions are in this package

ls(package:togglr)

Copy Link

Version

Install

install.packages('togglr')

Monthly Downloads

187

Version

0.2.1

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

vincent guyader

Last Published

February 19th, 2024

Functions in togglr (0.2.1)

client_name_to_id

client_name_to_id
get_detailled_report_paged

get detailled report
update_toggl_api_token

update_toggl_api_token
get_all_project_names

Get all project's names
get_project_total

get project total time
get_project_id_and_name

get_project_id_and_name
get_all_client_names

get all client's name
get_all_client_info

get_all_client_info
get_project_id

get_project_id
get_toggl_api_token

get_toggl_api_token
set_toggl_api_token

set_toggl_api_token
open_toggl_website_profile

open toggle.com website on profile page
get_current

get_current
get_client_project

get_client_project
get_weekly_report

get weekly report
to_humain

transforme time column into humain readable column
open_toggl_website_app

open toggle.com website on timesheet page
get_context_project

get_context_projet
notification

show notification
simplify

simplify copied from jsonlite
get_context

get_context
toggl_create

toggl_create
toggl_create_project

toggl_create_project
get_workspace_id

get_workspace_id
get_current_duration

get current duration
toggl_update_entries

toggl_update_entries
togglr-package

This package allow user to track time spend on R using the toggl.com timesheet
get_workspace_users

Title
create_client

create_client
delete_toggl_api_token

delete_toggl_api_token
get_current_project_task_detail

get all task from a project
get_time_entries

Get all time entries between 2 dates
get_dashboard

get all data from <https://toggl.com>
get_summary_report

get summary report
toggl_start

toggl_start
toggl_stop

toggl_stop
ask_toggl_api_token

ask_toggl_api_token
client_id_to_name

client_id_to_name
correct_date

correct_date