View source: R/catmaid_connection.R
catmaid_version | R Documentation |
Return the CATMAID version running on the server
catmaid_version(conn = NULL, cached = TRUE, numeric = FALSE, ...)
conn |
A |
cached |
Whether to use the cached version number for this connection (see details) |
numeric |
Whether to parse the version string into an R
|
... |
Additional arguments passed to |
By default the version number for the current
catmaid_connection
is stored on the first request after a new
login and then the cached version number is reused. Setting
cached=FALSE
will always force a request to the server.
CATMAID versions are now produced by git describe and look like
YYYY.MM.DD-XX-gaaaaaaa where aaaaaaa is a short SHA1 hash and XX is an
integer number of revisions since the last base version. Setting
numeric=TRUE
trims off the SHA1 hash leaving a string that can be
interpreted as a four part version number (see examples).
A character vector containing the version
numeric_version
## Not run: # example of checking if server version is newer than required version catmaid_version(numeric=TRUE)>="2016.1.1-65" ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.