loadRegistry | R Documentation |
Loads a registry from its file.dir
.
Multiple R sessions accessing the same registry simultaneously can lead to database inconsistencies.
This is especially dangerous if the same file.dir
is accessed from multiple machines, e.g. via a mount.
If you just need to check on the status or peek into some preliminary results while another process is still submitting or waiting for pending results, you can load the registry in a read-only mode. All operations that need to change the registry will raise an exception in this mode. Files communicated back by the computational nodes are parsed to update the registry in memory while the registry on the file system remains unchanged.
A heuristic tries to detect if the registry has been altered in the background by an other process and in this case automatically restricts the current registry to read-only mode.
However, you should rely on this heuristic to work flawlessly.
Thus, set to writeable
to TRUE
if and only if you are absolutely sure that other state-changing processes are terminated.
If you need write access, load the registry with writeable
set to TRUE
.
loadRegistry(
file.dir,
work.dir = NULL,
conf.file = findConfFile(),
make.default = TRUE,
writeable = FALSE
)
file.dir |
[ If you pass |
work.dir |
[ The provided path will get normalized unless it is given relative to the home directory (i.e., starting with “~”). Note that some templates do not handle relative paths well. |
conf.file |
[ The file lookup is implemented in the internal (but exported) function
Set to |
make.default |
[ |
writeable |
[ |
[Registry
].
Other Registry:
clearRegistry()
,
getDefaultRegistry()
,
makeRegistry()
,
removeRegistry()
,
saveRegistry()
,
sweepRegistry()
,
syncRegistry()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.