|
1 | | -citation(auto = meta) |
| 1 | +# Year resolution: CRAN sets Date/Publication on the installed package; fall |
| 2 | +# back to DESCRIPTION's Date, then to the current year, so the package entry |
| 3 | +# never renders as "(????)". |
| 4 | +year <- if (!is.null(meta$`Date/Publication`)) { |
| 5 | + substr(meta$`Date/Publication`, 1, 4) |
| 6 | +} else if (!is.null(meta$Date)) { |
| 7 | + substr(meta$Date, 1, 4) |
| 8 | +} else { |
| 9 | + format(Sys.Date(), "%Y") |
| 10 | +} |
| 11 | +note <- sprintf("R package version %s", meta$Version) |
2 | 12 |
|
3 | 13 | bibentry( |
4 | 14 | bibtype = "Article", |
5 | | - title = "slurmR: A lightweight wrapper for HPC with Slurm", |
6 | | - author = c( |
7 | | - person("George", "Vega Yon", email = "g.vegayon@gmail.com", role = c("aut", "cre"), comment = c(ORCID = "0000-0002-3171-0844")), |
8 | | - person("Paul", "Marjoram", email = "pmarjora@usc.edu", role = c("ctb", "ths"), comment = c(ORCID = "0000-0003-0824-7449")) |
| 15 | + title = "slurmR: A lightweight wrapper for HPC with Slurm", |
| 16 | + author = c( |
| 17 | + person("George", "Vega Yon", comment = c(ORCID = "0000-0002-3171-0844")), |
| 18 | + person("Paul", "Marjoram", comment = c(ORCID = "0000-0003-0824-7449")) |
9 | 19 | ), |
10 | | - journal = "The Journal of Open Source Software", |
11 | | - year = 2019, |
12 | | - month = "jul", |
13 | | - volume = 4, |
14 | | - number = 39, |
| 20 | + journal = "Journal of Open Source Software", |
| 21 | + year = "2019", |
| 22 | + month = "oct", |
| 23 | + volume = "4", |
| 24 | + number = "42", |
| 25 | + pages = "1493", |
15 | 26 | doi = "10.21105/joss.01493", |
16 | 27 | url = "https://doi.org/10.21105/joss.01493", |
17 | 28 | textVersion = paste( |
18 | | - "Vega Yon et al., (2019). slurmR: A lightweight wrapper for HPC", |
19 | | - "with Slurm. Journal of Open Source Software, 4(39), 1493,", |
| 29 | + "Vega Yon GG, Marjoram P (2019). slurmR: A lightweight wrapper for HPC", |
| 30 | + "with Slurm. Journal of Open Source Software, 4(42), 1493.", |
20 | 31 | "https://doi.org/10.21105/joss.01493" |
21 | | - ) |
| 32 | + ), |
| 33 | + header = "To cite slurmR in publications use:" |
| 34 | +) |
| 35 | + |
| 36 | +bibentry( |
| 37 | + bibtype = "Manual", |
| 38 | + title = "{{slurmR: A Lightweight Wrapper for 'Slurm'}}", |
| 39 | + author = c( |
| 40 | + person("George", "Vega Yon", comment = c(ORCID = "0000-0002-3171-0844")), |
| 41 | + person("Paul", "Marjoram", comment = c(ORCID = "0000-0003-0824-7449")) |
| 42 | + ), |
| 43 | + year = year, |
| 44 | + note = note, |
| 45 | + url = "https://github.com/USCbiostats/slurmR", |
| 46 | + doi = "10.32614/CRAN.package.slurmR", |
| 47 | + header = "And the R package itself:" |
22 | 48 | ) |
0 commit comments