savePlpShareable | R Documentation |
Save the plp result as json files and csv files for transparent sharing
savePlpShareable(result, saveDirectory, minCellCount = 10)
result |
An object of class runPlp with development or validation results |
saveDirectory |
The directory the save the results as csv files |
minCellCount |
Minimum cell count for the covariateSummary and certain evaluation results |
Saves the main results json/csv files (these files can be read by the shiny app)
The directory path where the results were saved
data("simulationProfile")
plpData <- simulatePlpData(simulationProfile, n = 1000)
saveLoc <- file.path(tempdir(), "savePlpShareable")
results <- runPlp(plpData, saveDirectory = saveLoc)
newSaveLoc <- file.path(tempdir(), "savePlpShareable", "saved")
path <- savePlpShareable(results, newSaveLoc)
# show the saved result
dir(newSaveLoc, full.names = TRUE, recursive = TRUE)
# clean up
unlink(saveLoc, recursive = TRUE)
unlink(newSaveLoc, recursive = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.