generatePreloadedSession | R Documentation |
Generate files for preloaded session from a session link.
generatePreloadedSession(sessionURL, preloadedName, preloadedDir)
sessionURL |
String with session link produced by phantasus. |
preloadedName |
String with name that should be assigned to the session. |
preloadedDir |
Path to the directory with preloaded datasets and sessions. |
Function produces two files (preloadedName.rda
with ExpressionSet
and preloadedName.json
with session features) in preloadedDir
folder.
## Not run:
sessionURL <- "https://ctlab.itmo.ru/phantasus/?session=x063c1b365b9211" # link from 'Get dataset link...' tool in phantasus
newName <- "my_session" # user defined name
preloadedDir <- "./preloaded" # directory where files will be stored. In order too get access through phantasus web-app should be preloadedDir
dir.create(preloadedDir, showWarnings = FALSE)
generatePreloadedSession(sessionURL= sessionURL,
preloadedName = newName,
preloadedDir = preloadedDir)
servePhantasus(preloadedDir=preloadedDir, openInBrowser=FALSE)
# open browser manually at http://0.0.0.0:8000/phantasus/index.html?preloaded=my_session
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.