From 4e7288e70dfbe96c82292e67cb92948cfcb5db28 Mon Sep 17 00:00:00 2001
From: RossanaTat Auxiliary Functions
within the syncdr environment, containing samples common files as well
as files exclusive to either directory. These toy directories are
deleted every time a new session is started.
-# Create .syncdrenv with left and right directories
-=toy_dirs()
- .syncdrenv #> ■■■■■■■■■ 27% | ETA: 8s
-#> ■■■■■■■■■■■■■■■■■■■ 60% | ETA: 5s
-# Get left and right directories' paths
-<- .syncdrenv$left
- left <- .syncdrenv$right right
+# Create .syncdrenv with left and right directories
+.syncdrenv =toy_dirs()
+#> ■■■■■■■ 20% | ETA: 8s■■■■■■■■■■■■■■■ 47% | ETA: 5s■■■■■■■■■■■■■■■■■ 53% | ETA:
+#> 5s■■■■■■■■■■■■■■■■■■■ 60% | ETA: 4s■■■■■■■■■■■■■■■■■■■■■■■■■ 80% | ETA:
+#> 2s■■■■■■■■■■■■■■■■■■■■■■■■■■■ 87% | ETA: 1s
+
+# Get left and right directories' paths
+left <- .syncdrenv$left
+right <- .syncdrenv$right
Together with toy_dirs()
, you might want to use
copy_temp_environment()
, in order to copy the original
environment and play with the various {syncdr} functions on this copied
@@ -370,13 +371,25 @@
verbose = FALSE
. In this
latter case, a message will still pop up to let you know when the
identification of duplicates is completed.
-
-# example
-search_duplicates(right, verbose = TRUE)
-#>
-#> ── Duplicates in '/var/folders/8y/hpp0r5m53kb_srnzjh912rmc0000gp/T/Rtmp3W6RYx/ri
-#> */C/C1.Rds
-#> */C/C1_duplicate.Rds
+# example
+search_duplicates(right, verbose = TRUE)
+#>
+#> ── Duplicates in 'C:/Users/wb621604/AppData/Local/Temp/RtmpqKcuoG/right' ───────
+#> */C/C1.Rds
+#> */C/C1_duplicate.Rds
Save sync status file
+Another auxiliary function is save_sync_status
, which
+comes in handy to track and document the status of files within a
+directory over time. This function generates a summary of file
+synchronization details, including file hashes and modification dates,
+for each file in the specified directory. The summary is saved as a file
+within a _syncdr subdirectory, so that sync status information is easily
+accessible.
The save_sync_status
function supports various save
+formats (e.g., .fst, .csv, .Rds), depending on the available packages
+and user-specified options.