diff --git a/NAMESPACE b/NAMESPACE index 99881fa..8346d9d 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -60,7 +60,6 @@ export(show_indexing_status) export(title_to_file_name) export(update_object) export(update_resource_map) -export(view_profile) export(which_in_eml) import(EML) import(XML) diff --git a/man/view_profile.Rd b/man/view_profile.Rd deleted file mode 100644 index 605fd21..0000000 --- a/man/view_profile.Rd +++ /dev/null @@ -1,54 +0,0 @@ -% Generated by roxygen2: do not edit by hand -% Please edit documentation in R/util.R -\name{view_profile} -\alias{view_profile} -\title{Get an approximate list of the datasets in a user's profile} -\usage{ -view_profile(mn, subject, fields = c("identifier", "title")) -} -\arguments{ -\item{mn}{(MNode) The Member Node to query.} - -\item{subject}{(character) The subject to find the datasets for. This is -likely going to be an ORCID, e.g. http://orcid.org....} - -\item{fields}{(character) A vector of Solr fields to return.} -} -\value{ -(data.frame) A data.frame with the results. -} -\description{ -This function is intended to (poorly) simulate what a user sees when they -browse to their "My Data Sets" page (their #profile URL). It uses a similar -Solr query to what Metacat UI uses to generate the list. -} -\details{ -The results of this function may be the same as what's on the #profile page -but may be missing some of the user's datasets when: -\itemize{ -\item The user has any datasets in their #profile that the person running the -query (you) can't \code{read}. This is rare on arcticdata.io but possible -because arctic-data-admins usually has read/write/changePermission -permissions on every object. -\item The user has datasets owned by an Equivalent Identity of the \code{subject} -being queried. This is rare, especially on arcticdata.io. -} -} -\examples{ -\dontrun{ -options(...set...your...token....) -mn <- env_load('production')$mn -me <- get_token_subject() -profile(mn, me) - -// Get a custom set of fields -view_profile(mn, me, "origin") - -# Set environment -cn <- CNode("STAGING2") -mn <- getMNode(cn,"urn:node:mnTestKNB") - -package_df <- view_profile(mn, "http://orcid.org/0000-0003-4703-1974", fields = c("title")) - -} -}