R/AWS.R

Defines functions URL_txregLocal URL_txregInAWS

Documented in URL_txregInAWS URL_txregLocal

#' return mongodb URL for working mongo server
#' @return character(1) URL for a hosted resource
#' @examples
#' URL_txregInAWS
#' @export
URL_txregInAWS = function() "mongodb+srv://user:user123@txregnet-kui9i.mongodb.net/txregnet"

# #' return mongolite connection for working mongo server #' @param \dots passed
# to mongo() #' @return an instance mongoliteCon of mongo from mongolite #' @note
# Want to minimize role of this.  Don't get in the #' way of mongolite.  #'
# @examples #' if (interactive()) { #' txregRemote() #' } #' @export txregRemote
# = function(...) { url=URL_txregInAWS() new('mongoliteCon',
# con=mongo(db='txregnet', url=url, ...), url=url, db='txregnet') }

#' local mongodb txregnet
#' @return a string with 127.0.0.1 instead of localhost, useful on macosx
#' @export
URL_txregLocal = function() "mongodb://127.0.0.1:27017"

Try the TxRegInfra package in your browser

Any scripts or data that you put into this service are public.

TxRegInfra documentation built on Nov. 8, 2020, 5:15 p.m.