neptune_exists {neptune}R Documentation

Checks if there is any field or namespace under the specified path.

Description

Checks if there is any field or namespace under the specified path. Note that this method checks the local representation of the run. The field may have been created by another process (use neptune_sync(run) to synchronize local representation) or the metadata may have not reached the Neptune servers so it may be impossible to fetch (use neptune_wait(run) to wait for all tracking calls to finish).

Usage

  neptune_exists(run, path)

Arguments

run

Neptune run object.

path

character - The path to check for the existence of a field or a namespace

Value

logical - TRUE if field exists at path

Author(s)

Authors:

See Also

Useful links:

Examples

  ## Not run: 
    # We are using api token for an anonymous user neptuner. 
    # For your projects use your private token.
    run <- neptune_init(api_token = 'ANONYMOUS',
                        project = "common-r/quickstarts")
    run['lr'] <- 0.001
    neptune_exists(run, 'lr')
    neptune_exists(run, 'notlr')
  
## End(Not run)

[Package neptune version 0.2.3 Index]