makeNewFolder: make a new folder

Usage Arguments Examples

Usage

1
makeNewFolder(parentId, folderId, Q, G)

Arguments

parentId
folderId
Q
G

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (parentId, folderId, Q, G)
{
    folderName <- G$name[folderId]
    folderParentId <- Q$newid[parentId]
    myFolder <- Folder(name = folderName, parentId = folderParentId)
    myFolder <- synStore(myFolder)
    return(myFolder$properties$id)
  }

Sage-Bionetworks/synapseUtilities documentation built on May 9, 2019, 12:15 p.m.