knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The goal of {labor}
is to keep your project folder structured, tidy and to sync it easily to local folders.
The package works only on MacOs systems.
Download the package in a local folder and then run the following code.
devtools::install_local("path_to_package")
Alternatively, you can install it directly from github.
library(devtools) devtools::install_github("c1au6i0/labor")
To set up your lab folder, start running create_labtree
.
The function generates the folder structure used for projects in our lab, and relative README
files.
If you run the function multiple types, you will be prompt to decide if overwrite or not particular folders.
Use remove_labtree
to remove the folders just created.
Under the hood, the package {labor}
use rsync
to sync local folders. Set up the destination folder using set_sync_lab
The destination folder is saved (.labor_destination
) in a file in the project directory .
Then run sync_lab
to sync the project folder with the destination.
Convenient things about lab_sync
:
rsync
.renv
packages are not synced. You can use exclude_files
to decide to not sync other specific files.direction
rsync
flags by setting the argument rsync_flags
(default is -avtuP
).Run check_lab
to see if you have messy directories.
The report generated indicates the absolute and over the total number of files misplaced and it lists them.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.