Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/saveSetToRepo.R
saveSetToRepo
function saves desired set of artifacts
to the local Repository in a given directory. To
learn more about artifacts visit archivist-
package. Set is a collection containing
an artifact,
data needed to create the artifact,
list of functions needed to create the artifact.
1 2 3 4 |
artifact |
An arbitrary R artifact to be saved. For supported artifacts see details. |
data |
Data
needed to compute |
functions |
Functions needed to compute artifact
. List of
them is the best form.
repoDir |
It's passed to
the saveToRepo. A character denoting an existing
directory in which an artifact will be saved. If set
to |
archiveData |
It's
passed to the saveToRepo. A logical value denoting
whether to archive the data from the |
archiveTags |
It's passed to the saveToRepo.
A logical value denoting whether to archive tags from the
|
archiveMiniature |
It's passed to
the saveToRepo. A logical value denoting whether to
archive a miniature of the |
force |
It's passed to the saveToRepo. A logical value
denoting whether to archive artifact
if it was
already archived in a Repository.
rememberName |
It's passed to the saveToRepo. A logical value. Should not be changed by an user. It is a technical parameter. |
chain |
It's passed to the saveToRepo. A
logical value. Should the result be (default |
... |
It's passed to the saveToRepo. Graphical parameters denoting width and height of a miniature. See details.
silent |
It's passed to the saveToRepo. If TRUE produces no warnings. |
ascii |
It's passed to the
saveToRepo. A logical value. An |
saveSetToRepo
archives artifact
, data
and functions
using saveToRepo function but
additionally it adds Tags to every part of a set in
convention as:set:md5hashOfArtifact
to remember that
all objects came originally from one set. This additional
tag helps to restore a set from a Repository
As a result of this function a character strings is
returned, which determines the md5hash
of the
archived artifact.
Marcin Kosinski , m.p.kosinski@gmail.com
For more detailed information check the archivist
package Use Cases. The list of supported
artifacts and their tags is available on wiki
on
archivist Github Repository.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | ## Not run:
# objects preparation
library(ggplot2)
library(ggthemes)
library(archivist)
createEmptyRepo( "SETS" )
setLocalRepo( "SETS" )
data(iris)
plotArtifact <- ggplot( iris, aes(x = Sepal.Length, y = Species)) +
geom_point()+
theme_wsj()
plotData <- iris
plotFunctions <- list( ggplot, geom_point, theme_wsj)
# storing
saveSetToRepo( artifact = plotArtifact,
data = plotData,
functions = plotFunctions)
# show method for set
showLocalRepo(method = "sets")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.