-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding citation file and DOI in README
- Loading branch information
Showing
5 changed files
with
72 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,24 @@ | ||
cit.tar.gz: inst/NEWS | ||
R CMD build . && mv cit_*.tar.gz cit.tar.gz | ||
install: cit.tar.gz | ||
cd .. && R CMD INSTALL cit_.tar.gz | ||
checkv: cit.tar.gz | ||
R CMD check --use-valgrind cit.tar.gz | ||
check: cit.tar.gz | ||
R CMD check cit.tar.gz | ||
VERSION:=$(shell Rscript -e 'x<-readLines("DESCRIPTION");cat(gsub(".+[:]\\s*", "", x[grepl("^Vers", x)]))') | ||
|
||
cit_$(VERSION).tar.gz: inst/NEWS R/*.R src/*.cpp | ||
R CMD build . | ||
|
||
install: cit_$(VERSION).tar.gz | ||
R CMD INSTALL cit_$(VERSION).tar.gz | ||
|
||
checkv: cit_$(VERSION).tar.gz | ||
R CMD check --use-valgrind cit_$(VERSION).tar.gz | ||
|
||
check: cit_$(VERSION).tar.gz | ||
R CMD check --as-cran cit_$(VERSION).tar.gz | ||
clean: | ||
rm -rf cit.tar.gz; rm -rf cit.Rcheck | ||
rm -rf cit*.tar.gz; rm -rf cit*.Rcheck | ||
debug: | ||
R -d valgrind --debugger-args='--leak-check=full' | ||
inst/NEWS: NEWS.md | ||
Rscript -e "rmarkdown::pandoc_convert('NEWS.md', 'plain', output='inst/NEWS')"&& \ | ||
head -n 80 inst/NEWS | ||
.PHONY: install check clean checkv debug | ||
version: | ||
echo $(VERSION) | ||
.PHONY: install check clean checkv debug version | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
year <- sub("-.*", "", meta$Date) | ||
note <- sprintf("R package version %s", meta$Version) | ||
|
||
citHeader("To cite cit in publications use:") | ||
|
||
citEntry( | ||
entry = "Article", | ||
title = "cit: hypothesis testing software for mediation analysis in genomic applications", | ||
author = c( | ||
person("Joshua", "Millstein", email = "joshua.millstein@usc.edu"), | ||
person("Gary", "Chen"), | ||
person("Carrie", "Breton") | ||
), | ||
journal = "Bioinformatics", | ||
year = 2016, | ||
month = "aug", | ||
volume = 32, | ||
issue = 15, | ||
doi = "10.1093/bioinformatics/btw135", | ||
url = "https://doi.org/10.1093/bioinformatics/btw135", | ||
issn = "1367-4803", | ||
textVersion = "Joshua Millstein, Gary K. Chen, Carrie V. Breton, cit: hypothesis testing software for mediation analysis in genomic applications, Bioinformatics, Volume 32, Issue 15, 1 August 2016, Pages 2364-2365, https://doi.org/10.1093/bioinformatics/btw135" | ||
) | ||
|
||
bibentry( | ||
bibtype = "Manual", | ||
title = "{{cit: Causal Inference Test}}", | ||
author = person( | ||
"Joshua", "Millstein", email = "joshua.millstein@usc.edu", | ||
role = c("aut", "cre"), comment = c(ORCID="0000-0001-7961-8943") | ||
), | ||
year = year, | ||
note = note, | ||
publisher="{CRAN}", | ||
url = "https://cran.r-project.org/package=cit", | ||
header = "Use this if you are using the CRAN version of cit:" | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters