Learn R Programming

RBERT (version 0.1.11)

set_BERT_dir: Set the directory for BERT checkpoints

Description

Set a given dir as the default BERT checkpoint directory for this session, and create it if it does not exist.

Usage

set_BERT_dir(dir)

Arguments

dir

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.

Value

A list with the previous value of `BERT.dir` (invisibly).

Examples

Run this code
# NOT RUN {
set_BERT_dir("fake_dir")
# }

Run the code above in your browser using DataLab