From 8d16a3365e0fa2e52911b50236b3be1a6f9e4140 Mon Sep 17 00:00:00 2001 From: James Keirstead Date: Wed, 21 May 2014 14:34:35 +0100 Subject: [PATCH 1/2] Added documentation format to R language --- lib/linguist/languages.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index 7350bb2a..a0744c92 100644 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -1698,6 +1698,8 @@ R: extensions: - .r - .R + - .Rd + - .rd - .rsx filenames: - .Rprofile From 1a98ccbf5f439e70215c24db7101421bfa2f9da7 Mon Sep 17 00:00:00 2001 From: James Keirstead Date: Wed, 21 May 2014 14:40:38 +0100 Subject: [PATCH 2/2] Added an example Rd file from the scholar package --- samples/R/scholar.Rd | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 samples/R/scholar.Rd diff --git a/samples/R/scholar.Rd b/samples/R/scholar.Rd new file mode 100644 index 00000000..8a593b38 --- /dev/null +++ b/samples/R/scholar.Rd @@ -0,0 +1,25 @@ +\docType{package} +\name{scholar} +\alias{scholar} +\alias{scholar-package} +\title{scholar} +\source{ + The package reads data from + \url{http://scholar.google.com}. Dates and citation + counts are estimated and are determined automatically by + a computer program. Use at your own risk. +} +\description{ + The \code{scholar} package provides functions to extract + citation data from Google Scholar. There are also + convenience functions for comparing multiple scholars and + predicting h-index scores based on past publication + records. +} +\note{ + A complementary set of Google Scholar functions can be + found at + \url{http://biostat.jhsph.edu/~jleek/code/googleCite.r}. + The \code{scholar} package was developed independently. +} +