Skip to content

Commit

Permalink
Tidied up docs for the new functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
LTLA committed Apr 25, 2024
1 parent 336e2f6 commit 4cce10e
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 9 deletions.
4 changes: 3 additions & 1 deletion R/listFiles.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
#' This will call the REST API if the caller is not on the same filesystem.
#'
#' @param path String containing the path to the registered (sub)directory.
#' @inheritParams retrieveDirectory
#' @param url String containing the URL of the SewerRat REST API.
#' @param forceRemote Logical scalar indicating whether to force remote access,
#' even if \code{path} is on the same filesystem as the caller.
#'
#' @author Aaron Lun
#'
Expand Down
2 changes: 1 addition & 1 deletion R/retrieveFile.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#' Retrieve a single file
#'
#' Retrieve the path to a single file in a registered directory.
#' This will call the REST API if the caller is not on the same filesystem as the registry.
#' This will call the REST API to obtain and cache a copy of the file if the caller is not on the same filesystem.
#'
#' @param path String containing the absolute path to a file in a registered directory.
#' @param forceRemote Logical scalar indicating whether to force remote access.
Expand Down
7 changes: 5 additions & 2 deletions R/retrieveMetadata.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@
#' Retrieve a single metadata entry in a registered directory from the SewerRat API.
#'
#' @param path String containing the absolute path to a file in a registered directory.
#' @inheritParams retrieveDirectory
#' @param url String containing the URL to the SewerRat REST API.
#'
#' @author Aaron Lun
#'
#' @return String containing the path to the file on the caller's filesystem.
#' @return A named list containing \code{path}, the path to the metadata file;
#' \code{user}, the identity of the owning user;
#' \code{time}, the Unix time at which the file was modified;
#' and \code{metadata}, the loaded metadata, typically as a named list representing a JSON object.
#'
#' @examples
#' info <- startSewerRat()
Expand Down
5 changes: 2 additions & 3 deletions man/listFiles.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/retrieveFile.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion man/retrieveMetadata.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4cce10e

Please sign in to comment.