mranUrl {checkpoint}R Documentation

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()

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

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)

## End(Not run)

[Package checkpoint version 0.4.3 Index]