Skip to content

Commit

Permalink
Update citation; update R requirement and package version to 0.99.0
Browse files Browse the repository at this point in the history
  • Loading branch information
adeschen committed Sep 27, 2021
1 parent a907772 commit 2279907
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 40 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: CNVMetrics
Type: Package
Version: 0.1.6
Version: 0.99.0
Date: 2021-02-17
Title: Copy Number Variant Metrics
Description: The CNVMetrics package calculates similarity metrics to
Expand All @@ -25,7 +25,7 @@ Authors@R: c(person("Astrid", "Deschênes", email = "[email protected]",
role = c("aut")))
Encoding: UTF-8
License: Artistic-2.0
Depends: R (>= 4.0)
Depends: R (>= 4.1)
Imports: GenomicRanges,
IRanges,
S4Vectors,
Expand Down
38 changes: 0 additions & 38 deletions inst/CITATION
Original file line number Diff line number Diff line change
@@ -1,41 +1,3 @@
pkgVer <- function(pkg) {
if (!exists("meta") || is.null(meta)) meta <- packageDescription(pkg)
ver <- meta$Version
paste0('https://github.com//', pkg, ' - R package version ', ver)
}

pkgTitle <- function(pkg) {
if (!exists("meta") || is.null(meta)) meta <- packageDescription(pkg)
title <- meta$Title
package <- meta$Package
paste0(package, ": ", title)
}

pkgURL <- function(pkg) {
if (!exists("meta") || is.null(meta)) meta <- packageDescription(pkg)
url <- meta$URL
paste0(url)
}

pkgAuthors <- function(pkg) {
if (!exists("meta") || is.null(meta)) meta <- packageDescription(pkg)
authorsL <- eval(str2expression(meta$`Authors@R`))
authorsList <- ""
for (i in authorsL) {
authorsList <- paste0(authorsList, i$given, " ", i$family, ", ")
}
strtrim(authorsList, nchar(authorsList)-2)
}


pkgTextVer <- function(pkg) {
if (!exists("meta") || is.null(meta)) meta <- packageDescription(pkg)
packageTitle <- pkgTitle(pkg)
urlLink <- pkgURL(pkg)
authors <- pkgAuthors(pkg)
paste0(authors, ' (', format(Sys.Date(), "%Y"), '). ', packageTitle,
'. ', urlLink)
}

c(
bibentry(bibtype="manual",
Expand Down

0 comments on commit 2279907

Please sign in to comment.