예제 #1
0
        /// <summary>
        /// push an object into the R workspace
        /// </summary>
        /// <param name="input">An RData object to load</param>
        /// <remarks></remarks>
        public void pushObject(RData input)
        {
            List <RData> inputs = new List <RData>();

            inputs.Add(input);

            RProjectWorkspaceImpl.pushObject(m_projectDetails, inputs, m_client, Constants.RPROJECTWORKSPACEPUSH);
        }
예제 #2
0
        /// <summary>
        /// Delete an object from the R workspace
        /// </summary>
        /// <param name="objectName">Name of R obejct to delete</param>
        /// <remarks></remarks>
        public void deleteObject(String objectName)
        {
            List <String> objectNames = new List <String>();

            objectNames.Add(objectName);

            RProjectWorkspaceImpl.deleteObject(m_projectDetails, objectNames, m_client, Constants.RPROJECTWORKSPACEDELETE);
        }
예제 #3
0
        /// <summary>
        /// get the value of an object from an R workspace
        /// </summary>
        /// <param name="objectName">R objects to get</param>
        /// <param name="encodeDataFramePrimitiveAsVector">data.frame encoding preference</param>
        /// <returns>List of RData objects</returns>
        /// <remarks></remarks>
        public RData getObject(String objectName, Boolean encodeDataFramePrimitiveAsVector)
        {
            RData returnValue = default(RData);

            List <String> objectNames = new List <String>();

            objectNames.Add(objectName);

            List <RData> objects = RProjectWorkspaceImpl.getObject(m_projectDetails, objectNames, encodeDataFramePrimitiveAsVector, m_client, Constants.RPROJECTWORKSPACEGET);

            if (!(objects == null))
            {
                if (objects.Count > 0)
                {
                    returnValue = objects[0];
                    return(returnValue);
                }
            }

            return(returnValue);
        }
예제 #4
0
 /// <summary>
 /// upload a file into the R workspace
 /// </summary>
 /// <param name="name">name of the object to transfer</param>
 /// <param name="filename">full path name of the file to transfer</param>
 /// <remarks></remarks>
 public void uploadObject(String name, String filename)
 {
     RProjectWorkspaceImpl.uploadObject(m_projectDetails, name, filename, m_client, Constants.RPROJECTWORKSPACEUPLOAD);
 }
예제 #5
0
 /// <summary>
 /// transfer an file from a URL into the R workspace
 /// </summary>
 /// <param name="name">name of the object to transfer</param>
 /// <param name="url">url of the object to transfer</param>
 /// <remarks></remarks>
 public void transferObject(String name, String url)
 {
     RProjectWorkspaceImpl.transferObject(m_projectDetails, name, url, m_client, Constants.RPROJECTWORKSPACETRANSFER);
 }
예제 #6
0
        /// <summary>
        /// save an object from the workspace to a repository file
        /// </summary>
        /// <param name="name">name of the object to save</param>
        /// <param name="descr">description of the object to save</param>
        /// <param name="versioning">indicate if versioning of the file should be enabled</param>
        /// <param name="restricted">indicates if file is restricted</param>
        /// <param name="sharedUser">indicates if file is shared</param>
        /// <param name="published">indicates if file is published</param>
        /// <returns>RRepositoryFile object</returns>
        /// <remarks></remarks>
        public RRepositoryFile storeObject(String name, String descr, Boolean versioning, Boolean sharedUser, Boolean published, String restricted)
        {
            RRepositoryFile returnValue = RProjectWorkspaceImpl.storeObject(m_projectDetails, name, sharedUser, published, restricted, descr, versioning, m_client, Constants.RPROJECTWORKSPACESTORE);

            return(returnValue);
        }
예제 #7
0
        /// <summary>
        /// save an object from the workspace to a project file
        /// </summary>
        /// <param name="name">name of the object to save</param>
        /// <param name="descr">description of the object to save</param>
        /// <param name="versioning">indicate if versioning of the file should be enabled</param>
        /// <returns>RProjectFile object</returns>
        /// <remarks></remarks>
        public RProjectFile saveObject(String name, String descr, Boolean versioning)
        {
            RProjectFile returnValue = RProjectWorkspaceImpl.saveObject(m_projectDetails, name, descr, versioning, m_client, Constants.RPROJECTWORKSPACESAVE);

            return(returnValue);
        }
예제 #8
0
 /// <summary>
 /// push an object into the R workspace
 /// </summary>
 /// <param name="inputs">A list of RData objects to load</param>
 /// <remarks></remarks>
 public void pushObject(List <RData> inputs)
 {
     RProjectWorkspaceImpl.pushObject(m_projectDetails, inputs, m_client, Constants.RPROJECTWORKSPACEPUSH);
 }
예제 #9
0
 /// <summary>
 /// load an object into the R workspace from a file in the repository
 /// </summary>
 /// <param name="file">RRepository object representing the file to load</param>
 /// <remarks></remarks>
 public void loadObject(RRepositoryFile file)
 {
     RProjectWorkspaceImpl.loadObject(m_projectDetails, file, m_client, Constants.RPROJECTWORKSPACELOAD);
 }
예제 #10
0
        /// <summary>
        /// get list of objects from an R workspace
        /// </summary>
        /// <param name="options">ProjectWorkspaceOptions object</param>
        /// <returns>List of RData objects</returns>
        /// <remarks></remarks>
        public List <RData> listObjects(ProjectWorkspaceOptions options)
        {
            List <RData> returnValue = RProjectWorkspaceImpl.listObjects(m_projectDetails, options, m_client, Constants.RPROJECTWORKSPACELIST);

            return(returnValue);
        }
예제 #11
0
        /// <summary>
        /// get the value of one or more objects from an R workspace
        /// </summary>
        /// <param name="objectNames">List of R objects to get</param>
        /// <param name="encodeDataFramePrimitiveAsVector">data.frame encoding preference</param>
        /// <returns>List of RData objects</returns>
        /// <remarks></remarks>
        public List <RData> getObjects(List <String> objectNames, Boolean encodeDataFramePrimitiveAsVector)
        {
            List <RData> returnValue = RProjectWorkspaceImpl.getObject(m_projectDetails, objectNames, encodeDataFramePrimitiveAsVector, m_client, Constants.RPROJECTWORKSPACEGET);

            return(returnValue);
        }
예제 #12
0
 /// <summary>
 /// Delete one or more objects from the R workspace
 /// </summary>
 /// <param name="objectNames">List of R objects to delete</param>
 /// <remarks></remarks>
 public void deleteObject(List <String> objectNames)
 {
     RProjectWorkspaceImpl.deleteObject(m_projectDetails, objectNames, m_client, Constants.RPROJECTWORKSPACEDELETE);
 }