Skip to content

Commit

Permalink
Default to using 4040 port for local API connection
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwarkentin committed Jan 8, 2025
1 parent f07d12a commit ae529dd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion R/APIConnections.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
#' sense for consistency. For local and remote API connections, set the
#' following environment variables in your `.Renviron` files:
#'
#' - `OPENMPP_LOCAL_URL`: URL for a local API connection.
#' - `OPENMPP_LOCAL_URL`: URL for a local API connection. Default is to use
#' http://localhost:4040.
#' - `OPENMPP_REMOTE_URL`: URL for a remote API connection.
#' - `OPENMPP_REMOTE_USER`: User name for logging into a remote API
#' connection.
Expand All @@ -42,6 +43,7 @@
#' @export
use_OpenMpp_local <- function(url = Sys.getenv('OPENMPP_LOCAL_URL'), ...) {
rlang::check_dots_empty()
if (nchar(url) == 0L) url <- 'http://localhost:4040'
con <- OpenMppLocal$new(url)
assign('API', con, OpenMpp)
invisible()
Expand Down
3 changes: 2 additions & 1 deletion man/use_OpenMpp_local.Rd

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

0 comments on commit ae529dd

Please sign in to comment.