remnt_remote_data: Function to remount data: runs an unmount following by a...

Description Usage Arguments Examples

View source: R/utils.R

Description

Function to remount data: runs an unmount following by a mount.

Usage

1
2
3
4
5
6
7
8
remnt_remote_data(
  mnt_path,
  remote_name,
  remote_path,
  attempt = 1,
  max_attempts = 5,
  sleep = 5
)

Arguments

mnt_path

is the directory to try and remount.

remote_name

is the name of the configured rclone remote.

remote_path

is the path to the remote directory to mount locally.

attempt

sets the attempt number you are on.

max_attempts

sets the max number of mount attempts.

sleep

number of seconds to sleep in between mount attempts.

Examples

1
remnt_remote_data(mnt_path="/Users/bob/mnt", "Bob_OneDrive", "Documents")

DecisionNeurosciencePsychopathology/DataTracker documentation built on Jan. 20, 2022, 4:51 p.m.