Skip to content

Commit 2327280

Browse files
author
Lindsay Carr
committed
don't hardcode "gsplot" as the package name
1 parent d0d1e7f commit 2327280

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

R/gsplot-class.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ gsplot <- function(x = NULL, ...) UseMethod("gsplot")
2424
#' @rdname gsplot
2525
#' @export
2626
gsplot.default <- function(..., created=Sys.Date(),
27-
gsplot.version=packageDescription("gsplot", fields = "Version"),
27+
gsplot.version=packageDescription(getPackageName(),
28+
fields = "Version"),
2829
config.file=NA, theme=NA, frame.plot=TRUE) {
2930
object <- gsplot(list(metadata=list(created=created,
3031
gsplot.version=gsplot.version),

0 commit comments

Comments
 (0)