Document R list of one value conversion

Description

In SYNR-1280, and anywhere we expect a list of items, and users enter a single value, they will see similar error that the backend JSON adapter thrown.

This ticket is to explore the option of the following conversion rule:

  • A vector of a single value in R will be converted to a single value in Python

  • A list of a single value in R will be converted to a list of a single value in Python

If we can implement this conversion rule in PythonEmbedInR, anywhere user see the JSON array conversion error, they can replace their <value> with list(<value>) to change from a single value input to a list of one value input.

Environment

None

Activity

Show:
Kimyen Truong
October 25, 2018, 5:41 PM

Verified that this already works:

Kimyen Truong
October 25, 2018, 5:42 PM

Will change this issue as a documentation issue in synapser.

Kimyen Truong
February 7, 2019, 7:28 PM

, can you validate this ticket by looking at: https://r-docs.synapse.org/reference/synSendMessage.html

Kimyen Truong
March 1, 2019, 10:22 PM

, can you help us validate that this document describe how to pass a single recipient (as wrapped in a list) : https://r-docs.synapse.org/reference/synSendMessage.html

Assignee

Kimyen Truong

Reporter

Kimyen Truong

Validator

Kelsey Montgomery

Development Area

None

Release Version History

None

Components

Sprint

None

Fix versions

Affects versions

Priority

Major
Configure