boB Rudis
6 years ago
6 changed files with 37 additions and 2 deletions
@ -0,0 +1,14 @@ |
|||
#' Read a macOS property list file |
|||
#' |
|||
#' @md |
|||
#' @param path path to `plist` file |
|||
#' @return `list` with property list contents or `NULL` if there was an error |
|||
#' reading the property list. |
|||
#' @export |
|||
read_plist <- function(path) { |
|||
.read_plist <- purrr::safely(plistlib$readPlist) |
|||
path <- path.expand(path[1]) |
|||
if (!file.exists(path)) stop("File not found.", call.=FALSE) |
|||
res <- .read_plist(path) |
|||
res$result |
|||
} |
@ -0,0 +1,18 @@ |
|||
% Generated by roxygen2: do not edit by hand |
|||
% Please edit documentation in R/read-plist.R |
|||
\name{read_plist} |
|||
\alias{read_plist} |
|||
\title{Read a macOS property list file} |
|||
\usage{ |
|||
read_plist(path) |
|||
} |
|||
\arguments{ |
|||
\item{path}{path to \code{plist} file} |
|||
} |
|||
\value{ |
|||
\code{list} with property list contents or \code{NULL} if there was an error |
|||
reading the property list. |
|||
} |
|||
\description{ |
|||
Read a macOS property list file |
|||
} |
Loading…
Reference in new issue