Description Usage Arguments Details Value Examples
These functions control session-wide settings that can increase processing speeds.
1 2 3 4 5 6 7 8 |
n_cores |
numeric, optional, number of cores to be used. If not defined, the number of cores will be detected automatically ( |
verbose |
logical, if |
frames_to_disk |
logical, whether to use disk space for creating frames or not. If |
dir_frames |
character, directory where to save frame during frames creating. |
n_memory_frames |
numeric, maximum number of frames allowed to be hold in memory. This number defines after how many frames memory should be cleared by writing frames in memory to disk. |
use_multicore
enables multi-core usage of moveVis
by setting the maximum number of cores to be used. This can strongly increase the speed of creating frames.
use_disk
enables the usage of disk space for creating frames. This can prevent memory overload when creating frames for very large animations.
For most tasks, moveVis
is able to use multiple cores to increase computational times through parallelization. By default, multi-core usage is disabled. This function saves the number of cores that moveVis
should use to the global option "moveVis.n_cores"
that can be printed using getOption("moveVis.n_cores")
.
How much memory is needed to create frames depends on the frame resolution (number of pixels) and the number of frames. Depending on how much memory is available it can make sense to allow disk usage and set a maximum number of frames to be hold in memory that won't fill up the available memory completely.
moveVis
uses the parallel
package for parallelization.
None. These functions are used for their side effects.
1 2 3 4 5 6 7 8 9 | # enable multi-core usage automatically
use_multicore()
# define number of cores manually
use_multicore(n_cores = 2)
# allow disk use with default directory
# and maxiumum of 50 frames in memory
use_disk(frames_to_disk = TRUE, n_memory_frames = 50)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.