Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #26 from renozao/fix-readme

use package description in front page if no README.md file is available
  • Loading branch information...
commit 66dedd4fdbd8427f05b3ef34b18ab856af2dc46e 2 parents f96ccef + 83ed089
@hadley authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  R/build.r
View
3  R/build.r
@@ -83,7 +83,8 @@ readme <- function(package) {
if (!is.null(package$readme)) return(markdown(package$readme))
path <- file.path(package$path, "README.md")
- if (!file.exists(path)) return()
+ # use description if no README.md is available
+ if (!file.exists(path)) return( package$description )
markdown(path = path)
}
Please sign in to comment.
Something went wrong with that request. Please try again.