Check the specified dir (or the default dir if none is specified) for a given model or url.
.has_checkpoint(model = NULL, dir = NULL, ckpt_dir = NULL)
Character vector. Which model checkpoint to download.
Character vector. Destination directory for checkpoints. Leave
NULL
to allow RBERT to automatically choose a directory. The path is
determined from the dir
parameter if supplied, followed by the
`RBERT.dir` option (set using set_BERT_dir), followed by an "RBERT"
folder in the user cache directory (determined using
user_cache_dir
). If you provide a dir
, the
`RBERT.dir` option will be updated to that location. Note that the
checkpoint will create a subdirectory inside this dir
.
The path to the subdir where this checkpoint should be saved. If model is given, ckpt_dir is inferred.
A logical indicating whether the user already has that checkpoint in that location.