Skip to content

Commit

Permalink
Add 'local.dir' examples
Browse files Browse the repository at this point in the history
  • Loading branch information
arni-magnusson committed May 29, 2023
1 parent 8449458 commit 8a30347
Show file tree
Hide file tree
Showing 12 changed files with 68 additions and 0 deletions.
5 changes: 5 additions & 0 deletions R/condor_dir.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,17 @@
#'
#' @examples
#' \dontrun{
#'
#' # General workflow
#' session <- ssh_connect("servername")
#'
#' condor_submit()
#' condor_q()
#' condor_dir()
#' condor_download() # after job has finished
#'
#' # Alternatively, examine runs on local drive
#' condor_dir(local.dir="c:/myruns")
#' }
#'
#' @importFrom ssh ssh_exec_internal
Expand Down
5 changes: 5 additions & 0 deletions R/condor_download.R
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,17 @@
#'
#' @examples
#' \dontrun{
#'
#' # General workflow
#' session <- ssh_connect("servername")
#'
#' condor_submit()
#' condor_q()
#' condor_dir()
#' condor_download() # after job has finished
#'
#' # Alternatively, download specific run to specific folder
#' condor_download("01_this_model", "c:/myruns/01_this_model")
#' }
#'
#' @importFrom ssh scp_download ssh_exec_internal ssh_exec_wait
Expand Down
7 changes: 7 additions & 0 deletions R/condor_log.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,18 @@
#'
#' @examples
#' \dontrun{
#'
#' # Examine log files on submitter machine
#' session <- ssh_connect("servername")
#'
#' condor_dir()
#' condor_log()
#' summary(condor_log())
#'
#' # Alternatively, examine log file on local drive
#' condor_dir(local.dir="c:/myruns")
#' condor_log(local.dir="c:/myruns/01_this_model")
#' summary(condor_log(local.dir="c:/myruns/01_this_model"))
#' }
#'
#' @importFrom ssh ssh_exec_internal
Expand Down
5 changes: 5 additions & 0 deletions R/condor_q.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,17 @@
#'
#' @examples
#' \dontrun{
#'
#' # General workflow
#' session <- ssh_connect("servername")
#'
#' condor_submit()
#' condor_q()
#' condor_dir()
#' condor_download() # after job has finished
#'
#' # Alternatively, list number of jobs being run by each user
#' condor_q(all=TRUE, count=TRUE)
#' }
#'
#' @importFrom ssh ssh_exec_wait
Expand Down
5 changes: 5 additions & 0 deletions R/condor_submit.R
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,17 @@
#'
#' @examples
#' \dontrun{
#'
#' # General workflow
#' session <- ssh_connect("servername")
#'
#' condor_submit()
#' condor_q()
#' condor_dir()
#' condor_download() # after job has finished
#'
#' # Alternatively, submit a specific run
#' condor_submit("c:/myruns/01_this_model")
#' }
#'
#' @importFrom ssh scp_upload ssh_exec_internal ssh_exec_wait
Expand Down
7 changes: 7 additions & 0 deletions R/summary.condor_log.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,18 @@
#'
#' @examples
#' \dontrun{
#'
#' # Examine log files on submitter machine
#' session <- ssh_connect("servername")
#'
#' condor_dir()
#' condor_log()
#' summary(condor_log())
#'
#' #' # Alternatively, examine log files on local drive
#' condor_dir(local.dir="c:/myruns")
#' condor_log(local.dir="c:/myruns/01_this_model")
#' summary(condor_log(local.dir="c:/myruns/01_this_model"))
#' }
#'
#' @importFrom utils type.convert
Expand Down
5 changes: 5 additions & 0 deletions man/condor_dir.Rd

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

5 changes: 5 additions & 0 deletions man/condor_download.Rd

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

7 changes: 7 additions & 0 deletions man/condor_log.Rd

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

5 changes: 5 additions & 0 deletions man/condor_q.Rd

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

5 changes: 5 additions & 0 deletions man/condor_submit.Rd

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

7 changes: 7 additions & 0 deletions man/summary.condor_log.Rd

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

0 comments on commit 8a30347

Please sign in to comment.