delete_built_in_proposal | R Documentation |
This function deletes built-in proposals from disk by specifying the sampling function and proposal type. It is useful for managing cached proposals and freeing up storage space.
delete_built_in_proposal(sampling_function, proposal_type = "custom")
sampling_function |
String. The name of the sampling distribution's function in STORS.
For example, |
proposal_type |
String. Either |
The function looks for the specified proposal type associated with the sampling function in the built-in proposals directory. If the proposal exists, it deletes the corresponding proposal file from disk and frees its cached resources. If the specified sampling function or proposal type does not exist, an error is thrown.
A message indicating the status of the deletion process, or an error if the operation fails.
# The following examples are not run, since if they are run the srgamma and
# srnorm samplers will no longer work until a new grid is built for them.
# This causes problems if the examples are run by CRAN checks or the website
# build system.
## Not run:
# Delete a custom proposal for the srgamma function (uncomment to run)
delete_built_in_proposal(sampling_function = "srgamma", proposal_type = "custom")
# Delete a scaled proposal for the srnorm function (uncomment to run)
delete_built_in_proposal(sampling_function = "srnorm", proposal_type = "scaled")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.