Package 'orgR'

Title: Analyse Text Files Created by Emacs' Org mode
Description: Provides functionality to process text files created by Emacs' Org mode, and decompose the content to the smallest components (headlines, body, tag, clock entries etc). Emacs is an extensible, customizable text editor and Org mode is for keeping notes, maintaining TODO lists, planning projects. Allows users to analyze org files as data frames in R, e.g., to convieniently group tasks by tag into project and calculate total working hours. Also provides some help functions like search.parent, gg.pie (visualise working hours in ggplot2) and tree.headlines (visualise headline stricture in tree format) to help user managing their complex org files.
Authors: Yi Tang
Maintainer: Yi Tang <[email protected]>
License: GPL (>= 2)
Version: 0.9.0
Built: 2024-10-31 18:36:42 UTC
Source: https://github.com/cran/orgR

Help Index


clock.table

Description

Parse org file

Usage

GetClockTable(org.file = "~/tmp.org")

Arguments

org.file

a org file

Details

scan a org file and return the headlines and associated clock entries

Value

a data.table

Author(s)

Yi Tang


Headlines

Description

org headlines

Usage

GetHeadlines(org.file = "~/tmp.org")

Arguments

org.file

a file path point to a .org file

Details

A function to parse org files, will return headlines and associated attributes, including tag, clock entries, shedules, deadlines, closed date, todo states,

Value

a table of headlines and attributes

Author(s)

Yi Tang


function

Description

ad descrition

Usage

GetTS(str = "a", ts.format = c("<%Y-%m-%d %a>",
  "<%Y-%m-%d %a %H:%M>"))

Arguments

str

content of a .org file

ts.format

format of time stamps used in the .org file. It is equivalent to org-time-stamp-formats in Emacs

Details

lalla details

Value

a

Author(s)

yitang


orgR

Description

orgR

Details

a package to process org file

Author(s)

yitang


search.parent

Description

Search for parent headlines

Usage

search.parent(head.info, heading.id)

Arguments

head.info

a head table from GetHeadlings

heading.id

a unique id from head.info

Details

Given a headlines table and headline id, it will return the parent headlines.

Value

a data.table

Author(s)

Yi Tang


clock.table

Description

Parse clock entry to ISO date

Usage

ToISOdate(clock.entries)

Arguments

clock.entries

a standard clock entry from org-mode

Value

POXICt object

Author(s)

Yi Tang

Examples

str <- c("CLOCK: [2014-11-26 Wed 09:36]--[2014-11-26 Wed 10:04] =>  0:28",
         "CLOCK: [2014-12-04 Thu 15:24]--[2014-12-04 Thu 16:25] =>  1:01")
ToISOdate(str)

org-headings-tree

Description

Visualise org-mode headings

Usage

tree.headings(head.info, output = "screen", plantuml = TRUE)

Arguments

head.info

a data.tabl returned by GetHeadlines()

output

file to save the results, default setting is to print to scree

plantuml

TRUE/FALSE, for plantuml program?

Details

tree structure of org headlines

Value

a string that can be used in plantuml program

Author(s)

Yi Tang