Skip to content

Commit

Permalink
Misc. doc tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
brendan-r committed Apr 14, 2015
1 parent 54822ae commit 2db9fde
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 7 deletions.
1 change: 0 additions & 1 deletion R/box_save_load.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

#' Save and load \code{R} workspaces via box.com
#'
#' These convenience functions aim to provide analagous functionality to
Expand Down
16 changes: 14 additions & 2 deletions R/box_source.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@

#' @rdname box_save
#' Execute R code stored on box.com
#'
#' \code{box_source} will download a remote R script stored on box.com, and then
#' attempt to execute it, using \code{\link{source}}.
#'
#' @inheritParams box_dl
#'
#' @author Brendan Rocks \email{rocks.brendan@@gmail.com}
#'
#' @export
#'
#' @seealso \code{\link{box_dl}} for saving files to disk,
#' \code{\link{box_save}} for working with R workspaces, and
#' \code{\link{box_read}} for reading files into memory as R objects.
#'
box_source <- function(file_id){
temp_dir <- tempdir()
temp_file <- box_dl(file_id, overwrite = TRUE, local_dir = temp_dir)
Expand Down
2 changes: 2 additions & 0 deletions R/boxr__internal_dir_comparison.R
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@
#'
#' @references
#' \url{https://developers.box.com/docs}
#'
#' @author Brendan Rocks \email{rocks.brendan@@gmail.com}
#'
#' @seealso \code{\link{box_fetch}} and \code{\link{box_push}}, which depend on
#' this internal function, \code{\link{file.info}} for timestamps describing
Expand Down
3 changes: 3 additions & 0 deletions man/box_dir_diff.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ or a download operation? Permitted values are \code{"up"} or \code{"down"}}
systems.
}
}
\author{
Brendan Rocks \email{rocks.brendan@gmail.com}
}
\references{
\url{https://developers.box.com/docs}
}
Expand Down
5 changes: 1 addition & 4 deletions man/box_save.Rd
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/box_save_load.R, R/box_source.R
% Please edit documentation in R/box_save_load.R
\name{box_save}
\alias{box_load}
\alias{box_save}
\alias{box_save_image}
\alias{box_source}
\title{Save and load \code{R} workspaces via box.com}
\usage{
box_save(..., dir_id = box_getwd(), file_name = ".RData")

box_save_image(dir_id = box_getwd(), file_name = ".RData", ...)

box_load(file_id)

box_source(file_id)
}
\arguments{
\item{...}{The objects to be saved. Quoted or unquoted. Passed to
Expand Down
24 changes: 24 additions & 0 deletions man/box_source.Rd
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/box_source.R
\name{box_source}
\alias{box_source}
\title{Execute R code stored on box.com}
\usage{
box_source(file_id)
}
\arguments{
\item{file_id}{The box.com id for the file that you'd like to download}
}
\description{
\code{box_source} will download a remote R script stored on box.com, and then
attempt to execute it, using \code{\link{source}}.
}
\author{
Brendan Rocks \email{rocks.brendan@gmail.com}
}
\seealso{
\code{\link{box_dl}} for saving files to disk,
\code{\link{box_save}} for working with R workspaces, and
\code{\link{box_read}} for reading files into memory as R objects.
}

0 comments on commit 2db9fde

Please sign in to comment.