Save threeBrain widgets to local file system

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