Revision 9ed6d6be90c4a866357a121a3f106a0bea1cdb99 authored by Adrian Baddeley on 22 July 2008, 00:00:00 UTC, committed by Gabor Csardi on 22 July 2008, 00:00:00 UTC
1 parent f919f46
versions.R
#
# versions.R
#
# version numbers
#
# $Revision: 1.4 $ $Date: 2007/09/05 16:32:26 $
#
#####################
# Extract version string from ppm object
versionstring.ppm <- function(object) {
verifyclass(object, "ppm")
v <- object$version
if(is.null(v) || !is.list(v))
v <- list(major=1, minor=3, release=4)
vs <- paste(v$major, ".", v$minor, "-", v$release, sep="")
return(vs)
}
# Extract version string from interact object
versionstring.interact <- function(object) {
verifyclass(object, "interact")
v <- object$version
return(v) # NULL before 1.11-0
}
# Get version number of current spatstat installation
versionstring.spatstat <- function() {
vs <- read.dcf(file=system.file("DESCRIPTION", package="spatstat"),
fields="Version")
return(as.character(vs))
}
# Extract major and minor versions only.
majorminorversion <- function(v) {
vp <- package_version(v)
return(package_version(paste(vp$major, vp$minor, sep=".")))
}
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...