Skip to contents

Mark a column for deletion. Note that this does not delete the column from Synapse. You must call the synStore() function on this SubmissionView instance to delete the column from Synapse. This is a convenience function to eliminate the need to manually delete the column from the named list and add it to the $_columns_to_delete attribute.

Usage

synDeleteColumn(instance, name)

Arguments

instance

(SubmissionView) The SubmissionView instance to operate on.

name

(str) The name of the column to delete.

Value

NULL

Examples

if (FALSE) { # \dontrun{
## Deleting a column
    # This example shows how you may delete a column from a submission view and
    # then store the change back in Synapse.
    library(synapser)
    synLogin()

    view = SubmissionView(id = "syn1234") |> synGet(table_options = TableOptions(include_columns = TRUE))

    view |> synDeleteColumn(name = "my_column")
    view |> synStore()
} # }