-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.Rmd
84 lines (61 loc) · 2.08 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
---
output: github_document
always_allow_html: true
editor_options:
markdown:
wrap: 72
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# syncdr
<!-- badges: start -->
<!-- badges: end -->
{syncdr} is an R package designed to facilitate the process of directory
comparison and synchronization. This package provides essential tools
for users who need to manage and synchronize their directories
effectively.
With {syncdr}, users can:
- Visualize Directory Structures: Gain a comprehensive view of
directory contents, including the tree structure, common files, and
files unique to each directory.
- Manage Files with Ease: Perform content-based and modification
date-based file comparisons, and handle tasks like identifying
duplicates, copying, moving, and deleting files seamlessly within
the R environment. By incorporating {syncdr} into their workflow,
users can achieve a more organized and up-to-date file system,
simplifying the overall management and synchronization of
directories.
## Installation
You can install the development version of syncdr from
[GitHub](https://github.com/) with:
```{r}
# install.packages("devtools")
devtools::install_github("RossanaTat/syncdr")
```
## Usage example
```{r example}
library(syncdr)
# Generate toy directories to show package usage
# --- Create .syncdrenv --- #
.syncdrenv <- toy_dirs()
left <- .syncdrenv$left
right <- .syncdrenv$right
# --- Compare synchronization status of the two directories --- #
display_dir_tree(path_left = left,
path_right = right)
# comparing by date of last modification
compare_directories(left_path = left,
right_path = right)
# --- Perform synchronization action --- #
# asymmetric snchronization from left to right
full_asym_sync_to_right(left_path = left,
right_path = right,
force = FALSE)
```