Skip to content

Commit

Permalink
#8 add version to output of getVersions()
Browse files Browse the repository at this point in the history
  • Loading branch information
eblondel committed Jul 30, 2019
1 parent 001b6ce commit eb11048
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions R/ZenodoRecord.R
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,11 @@ ZenodoRecord <- R6Class("ZenodoRecord",
date <- as.Date(strptime(html_date, format="%b %d, %Y"))
return(date)
}), origin = "1970-01-01"),
version = sapply(html_nodes(html_versions, "tr"), function(x){
v <- html_text(html_nodes(x, "a")[1])
v <- substr(v, 9, nchar(v)-1)
return(v)
}),
doi = sapply(html_nodes(html_versions, "tr"), function(x){html_text(html_nodes(x, "small")[1])}),
stringsAsFactors = FALSE
)
Expand Down

0 comments on commit eb11048

Please sign in to comment.