Skip to content

R bookmark restore value shape differs from Python #156

Description

@schloerke

R's bookmark restore serializer uses jsonlite::toJSON(auto_unbox = TRUE), so a length-1 R vector (e.g. a checkbox-group with one selected value) serializes as a JSON scalar "a", whereas Python json.dumps emits ["a"]. This can seed the wrong shape into the JS input registry for single-value multi-value inputs on restore. Needs a cross-language bookmark-payload fixture and a shape-preserving fix (hard due to R's lack of a scalar vs. vector distinction).

Note: re-verify against current code; the broad bookmarking issue #27 is closed.

Filed from the retired docs/todos.md.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions