Skip to content

Commit

Permalink
outline document_msgs func (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
leeper committed Mar 22, 2015
1 parent 2e4749c commit 6a1cab0
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions R/document.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,25 @@ function(pkg = ".",
stop("'fmt' must be 'Rd' or 'roxygen'")
}

# document
# extract messages
m1 <- get_messages(pkg = pkg, type = "xgettext")
m2 <- get_messages(pkg = pkg, type = "xngettext")

# format

# check if documentation file already exists
# if file exists:

# parse documentation file

# compare file to messages

# update file

# if file doesn't exist:

# document messages

# write to file

con <- file(file)
on.exit(close(con))
Expand Down

0 comments on commit 6a1cab0

Please sign in to comment.