View source: R/access-element.R
add_access | R Documentation |
The add access element creates a list that includes all the required elements for the access section of an EML document. Calling add_access() will output the default public access permissions and cvpia write access permissions. To customize the access level provide values for the allow_principal, add_permission, and cvpia_access arguments.
add_access(
allow_principal = NULL,
allow_permission = NULL,
cvpia_access = TRUE
)
allow_principal |
The principal argument refers to who will have access to this dataset. The allow_principal argument takes in a string. With no input the allow_principal will default to "public". To change to a different principal please input a new principal. The valid options for the principal are:
|
allow_permission |
The permission argument refers to the type of access that is allowed to the principal. The allow_permission argument takes in a string. With no input the allow_permission will default to "read". This default permission allows the principal to read the dataset but not edit. To change to a different permission please input a new permission. The valid options for permission are:
|
cvpia_access |
The cvpia_access argument allows for an additional set of permissions for a cvpia user group. The valid options for cvpia_access are:
|
Returns an list with all the information required for the access section of an EML document.
add_access()
add_access(allow_principal = "private",
allow_permission = "none",
cvpia_access = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.