Description Usage Arguments Value Examples
Generate files for preloaded session from a session link.
1 | 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.
1 2 3 4 5 6 7 8 9 10 11 12 | 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)
## Not run:
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.