Skip to content

Commit

Permalink
fix bug in guess_readme discovered thanks to ropenscilabs/opencv
Browse files Browse the repository at this point in the history
  • Loading branch information
maelle committed Nov 8, 2018
1 parent 44236ea commit ffd30f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/guess_metadata.R
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ guess_github <- function(root = ".") {
if(length(readmes) == 0){
readme_path <- NULL
}else{
readme_rmd <- readmes[grepl("\\.Rmd", readmes)]
readme_rmd <- readmes[grepl("\\.[Rr]md", readmes)]
if(length(readme_rmd) == 0){
readme_path <- file.path(root, readmes[grepl("\\.md", readmes)])
}else{
Expand Down

0 comments on commit ffd30f3

Please sign in to comment.