get_zip: Get and zip the data, or a full jsPsychMakeR protocol without...

get_zipR Documentation

Get and zip the data, or a full jsPsychMakeR protocol without the data, to keep it as a backup

Description

We use this internal function to save the data of the Running protocols (according to the Google sheet "Codebook protocolos") to a folder SHARED with the project's PI's

Usage

get_zip(
  pid,
  what,
  where = NULL,
  credentials_file = NULL,
  dont_ask = TRUE,
  ignore_existing = FALSE,
  all_messages = FALSE,
  tempdir_location = NULL,
  file_name = NULL
)

Arguments

pid

project id

what

Should be one of c("data", "protocol")

where

Where to leave the zip file with the data. Leave empty to save to ⁠SHARED-data/pid/⁠

credentials_file

Path to .credentials file. Usually: .vault/.credentials

dont_ask

TRUE / FALSE

ignore_existing

If TRUE, does not overwrite existing files even if they are newer. Good for .data/, Bad for rest

all_messages

Show all rsync messages? TRUE / FALSE

tempdir_location

You can choose a tempdir_location (for example, to extract contents of an existing zip and sync only new files)

file_name

Name of zip file. If NULL, the default, will apply simple rules to create name.

Value

A zip file


gorkang/jsPsychHelpeR documentation built on Oct. 15, 2024, 8 a.m.