boB Rudis
5 years ago
16 changed files with 193 additions and 46 deletions
@ -1,7 +1,22 @@ |
|||||
# Generated by roxygen2: do not edit by hand |
# Generated by roxygen2: do not edit by hand |
||||
|
|
||||
|
export("%>%") |
||||
export(from_coredata_ts) |
export(from_coredata_ts) |
||||
|
export(list_ios_backups) |
||||
|
export(platform_ios_backup_dir) |
||||
export(src_mowerplus) |
export(src_mowerplus) |
||||
import(tibble) |
import(tibble) |
||||
|
importFrom(dplyr,arrange) |
||||
|
importFrom(dplyr,desc) |
||||
|
importFrom(dplyr,filter) |
||||
|
importFrom(dplyr,mutate) |
||||
|
importFrom(dplyr,pull) |
||||
|
importFrom(dplyr,select) |
||||
importFrom(dplyr,src_sqlite) |
importFrom(dplyr,src_sqlite) |
||||
importFrom(dplyr,tbl) |
importFrom(dplyr,tbl) |
||||
|
importFrom(fs,dir_exists) |
||||
|
importFrom(fs,dir_info) |
||||
|
importFrom(fs,file_copy) |
||||
|
importFrom(fs,path_join) |
||||
|
importFrom(fs,path_real) |
||||
|
importFrom(magrittr,"%>%") |
||||
|
@ -1,2 +1,8 @@ |
|||||
|
0.2.0 |
||||
|
* Functions attempt to auto-derive the iOS backup location on macOS and legacy Windows operating systems. |
||||
|
* Uses the `{fs}` pacakge for all file/directory operations |
||||
|
* Provides a `list_ios_backups()` function so you can see all the iOS backups available |
||||
|
* `src_mowerplus()` defaults to using the most recent iOS backup (if it exists) if unspecified |
||||
|
|
||||
0.1.0 |
0.1.0 |
||||
* Initial release |
* Initial release |
||||
|
@ -0,0 +1,31 @@ |
|||||
|
#' List iOS backups available on this system |
||||
|
#' |
||||
|
#' @param dir backup dir (will attempt to be auto-derived) |
||||
|
#' @export |
||||
|
#' @examples |
||||
|
#' list_ios_backups() |
||||
|
list_ios_backups <- function(dir = platform_ios_backup_dir()) { |
||||
|
|
||||
|
fs::dir_info(platform_ios_backup_dir(), type = "directory") %>% |
||||
|
mutate(path = basename(path)) %>% |
||||
|
arrange(desc(modification_time)) %>% |
||||
|
select(path, modification_time, size) |
||||
|
|
||||
|
} |
||||
|
|
||||
|
#' @rdname list_ios_backups |
||||
|
#' @export |
||||
|
platform_ios_backup_dir <- function() { |
||||
|
|
||||
|
os <- detect_os() |
||||
|
|
||||
|
switch( |
||||
|
os, |
||||
|
windows = "~/AppData/Roaming/Apple Computer/MobileSync/Backup", |
||||
|
macos = "~/Library/Application Support/MobileSync/Backup" |
||||
|
) |
||||
|
|
||||
|
} |
||||
|
|
||||
|
|
||||
|
|
@ -0,0 +1,11 @@ |
|||||
|
#' Pipe operator |
||||
|
#' |
||||
|
#' See \code{magrittr::\link[magrittr]{\%>\%}} for details. |
||||
|
#' |
||||
|
#' @name %>% |
||||
|
#' @rdname pipe |
||||
|
#' @keywords internal |
||||
|
#' @export |
||||
|
#' @importFrom magrittr %>% |
||||
|
#' @usage lhs \%>\% rhs |
||||
|
NULL |
Before Width: | Height: | Size: 55 KiB After Width: | Height: | Size: 61 KiB |
Before Width: | Height: | Size: 267 KiB After Width: | Height: | Size: 317 KiB |
Before Width: | Height: | Size: 575 KiB After Width: | Height: | Size: 287 KiB |
@ -0,0 +1,20 @@ |
|||||
|
% Generated by roxygen2: do not edit by hand |
||||
|
% Please edit documentation in R/list-backups.R |
||||
|
\name{list_ios_backups} |
||||
|
\alias{list_ios_backups} |
||||
|
\alias{platform_ios_backup_dir} |
||||
|
\title{List iOS backups available on this system} |
||||
|
\usage{ |
||||
|
list_ios_backups(dir = platform_ios_backup_dir()) |
||||
|
|
||||
|
platform_ios_backup_dir() |
||||
|
} |
||||
|
\arguments{ |
||||
|
\item{dir}{backup dir (will attempt to be auto-derived)} |
||||
|
} |
||||
|
\description{ |
||||
|
List iOS backups available on this system |
||||
|
} |
||||
|
\examples{ |
||||
|
list_ios_backups() |
||||
|
} |
@ -0,0 +1,12 @@ |
|||||
|
% Generated by roxygen2: do not edit by hand |
||||
|
% Please edit documentation in R/utils-pipe.R |
||||
|
\name{\%>\%} |
||||
|
\alias{\%>\%} |
||||
|
\title{Pipe operator} |
||||
|
\usage{ |
||||
|
lhs \%>\% rhs |
||||
|
} |
||||
|
\description{ |
||||
|
See \code{magrittr::\link[magrittr]{\%>\%}} for details. |
||||
|
} |
||||
|
\keyword{internal} |
Loading…
Reference in new issue