Learn R Programming

threeBrain (version 1.0.1)

save_brain: Save threeBrain widgets to local file system

Description

Save threeBrain widgets to local file system

Usage

save_brain(
  widget,
  directory,
  filename = "index.html",
  assetpath = "lib/",
  datapath = "lib/threebrain_data-0/",
  title = "3D Viewer",
  as_zip = FALSE
)

Arguments

widget

generated from function 'threejs_brain'.

directory

directory to save the widget.

filename

default is 'index.html', filename of the widget index file.

assetpath

where to put css or JavaScript to, must be relative to directory.

datapath

where to store data to, must be relative to directory.

title

widget title.

as_zip

whether to create zip file "compressed.zip".

Author

Zhengjia Wang