restoreLibs
gets either session info
or artifact's md5hash
and restore libraries/packages to versions attached when the object was saved in the repo.
Typical use case is following. We have saved an object and now we are restoring it, but
with current version of packages something is not working. The function restoreLibs()
reverts all libraries that were attached previously to their previous versions.
restoreLibs(md5hash, session_info = NULL, lib.loc = NULL)
A character vector which elements are consisting of at least three components separated with '/': Remote user name, Remote repository and name of the artifact (MD5 hash) or it's abbreviation.
MD5 hashes of artifacts in current local default directory or its abbreviations.
md5hash
R
library trees to restore archived libraries, or NULL
.
The default value of NULL
corresponds to all libraries currently known to .libPaths().
Non-existent library trees are silently ignored.Repository
,
Tags
, %a%
,
addHooksToPrint
, addTagsRepo
,
aformat
, ahistory
,
alink
, aoptions
,
archivist-package
, aread
,
asearch
, asession
,
atrace
, cache
,
copyLocalRepo
,
createLocalRepo
,
createMDGallery
,
deleteLocalRepo
,
getRemoteHook
, getTagsLocal
,
loadFromLocalRepo
, md5hash
,
rmFromLocalRepo
,
saveToLocalRepo
,
searchInLocalRepo
,
setLocalRepo
,
shinySearchInLocalRepo
,
showLocalRepo
,
splitTagsLocal
,
summaryLocalRepo
,
zipLocalRepo
## Not run:
# ## objects preparation
# restoreLibs(md5hash = "pbiecek/graphGallery/f05f0ed0662fe01850ec1b928830ef32")
# ## End(Not run)
Run the code above in your browser using DataLab