Get public-domain citation dataSource:
Get the latest version of the NIH Open Citation Collection from figshare
and optionally write it to the database. This function requires the shell
unzip, available by default on most Unix systems. This function
should not normally be called directly, as it is called by
getCitation( localDir, filename = "open_citation_collection.zip", nrows = Inf, tableSuffix = NULL, overwrite = FALSE, con = NULL, checkMd5 = TRUE )
String indicating path to directory containing the citation file or to which the citation file should be downloaded.
String indicating name of the citation file. This should not normally be changed from the default.
Number indicating how many rows of the citation file to read. This should not normally be changed from the default.
String indicating suffix, if any, to append to the table name.
Logical indicating whether to overwrite an existing table.
Connection to the database, created using
Logical indicating whether to download the citation file if the MD5 sums of the local and remote versions do not match. This should not normally be changed from the default.
NULL, the function returns a data.table with columns
cited_pmid. Beware this is a large table and could
swamp the machine's memory. If
con is not
NULL, the function returns