Skip to content
Snippets Groups Projects
Select Git revision
  • 31fba17bd2e84740e299b01d0aa8a53362981146
  • main default protected
  • 3D_UNet
  • notebooksv1
  • scaleZYX_mean
  • notebooks
  • convert_tiff_folders
  • test
  • notebook_update
  • threshold-exploration
  • optimize_scaleZYXdask
  • layered_surface_segmentation
  • conv_zarr_tiff_folders
  • 3d_watershed
  • tr_val_te_splits
  • save_files_function
  • memmap_txrm
  • v0.4.1
  • v0.4.0
  • v0.3.9
  • v0.3.3
  • v0.3.2
  • v0.3.1
  • v0.3.0
  • v0.2.0
25 results

_loading.py

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    cache_save.R 536 B
    #' Saves the object as an .RDS file with the filename
    #'
    #' See the examples for \code{\link{cache_name}()}.
    #'
    #' @title Save a cache file (name generated with \code{code_name()}
    #' @param object The object to cache (i.e. the value of the evaluating function).
    #' @param filename The cache file name (i.e. use the one generated by cache_name, see examples).
    #' @return NULL
    #'
    #' @export
    cache_save <- function(object, filename){
        dir.create(dirname(filename), showWarnings=FALSE, recursive=TRUE)
        saveRDS(object, filename)
    }