checkpoint (version 0.4.1)

mranUrl: Returns MRAN URL by querying options and defaults.

Description

This function returns the current MRAN URL. The default for this is http(s)://mran.microsoft.com/, and is defined by setting the checkpoint.mranUrl option.

Usage

mranUrl()

Arguments

Value

Character string with URL

Defining a new MRAN URL

To force checkpoint() to point to a differt URL, you can set the checkpoint.mranUrl option.

options(checkpoint.mranUrl = "new_url")

See Also

Other checkpoint functions: checkpointArchives, checkpointRemove, checkpoint, getAccessDate, getValidSnapshots, setSnapshot, unCheckpoint

Examples

Run this code
# NOT RUN {
mranUrl()  

# }
# NOT RUN {
  
# Store the existing options
old_opts <- getOption("checkpoint.mranUrl")

# Set MRAN URL to different http address
options(checkpoint.mranUrl = "https://foobah")

# Set MRAN URL to local file address
options(checkpoint.mranUrl = "file:///~")

# Reset the original options
options(checkpoint.mranUrl = old_opts)
# }

Run the code above in your browser using DataCamp Workspace