Skip to content
This repository was archived by the owner on Oct 6, 2025. It is now read-only.
This repository was archived by the owner on Oct 6, 2025. It is now read-only.

R SDK don't seem to have the look() method and can't find another way to run a look with a different filter #40

@alan-krumholz

Description

@alan-krumholz

R SDK don't seem to have the look() method and can't find another way to run a look with a different filter

In Python and Ruby we ca do that using:

Python:

look = sdk.look(16)

request = create_query_request(
    query=look.query,
    filters={'track_motivations.track_id':'256'})

sdk.run_inline_query(
    'csv',
    request,
    cache=False)

Ruby

look = sdk.look(16)
output = sdk.run_inline_query(
    "png",
    {
        "model" => look.query.model,
        "view" => look.query.view,
        "fields" => look.query.fields,
        "pivots" => look.query.pivots,
        "fill_fields" => look.query.fill_fields,
        "filters" => {
            'track_motivations.track_id' => '255'},
        "sorts" => look.query.sorts,
        "limit" => look.query.limit,
        "column_limit" => look.query.column_limit,
        "total" => look.query.total,
        "row_total" => look.query.row_total,
        "subtotals" => look.query.subtotals,
        "dynamic_fields" => look.query.dynamic_fields,
        "query_timezone" => look.query.query_timezone,
        "vis_confif" => look.query.vis_config
    })

but we need a way to do the same using the R SDK. Is it possible?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions