Skip to content

as.speeches() mistakenly recognizes partitions from GERMAPARL2 as partition_bundles #12

@ghost

Description

When I run the below code I will get the following error:

test <- partition("GERMAPARL2", protocol_lp= 18:19, p_attribute="word")

entire_bundle <- as.speeches(test, s_attribute_name = "speaker_name", s_attribute_date = "protocol_date")

ℹ distinct dates detected: 483
ℹ bundle class: partition_bundle
ℹ objects in bundle: plpr_partition
ℹ s-attribute for splitting ("protocol_date") is ancestor of s-attribute "speaker_parlgroup"
ℹ s-attribute "protocol_date" has values: yes
✔ get list of regions [36ms]
✔ instantiate 483 plpr_partition objects [73ms]
✔ subsetting by date [489ms]
|++++++++++++++++++++++++++++++++++++++++++++++++++| 100% elapsed=42s
Error in getClass(Class, where = topenv(parent.frame())) :
“plpr_partition_bundle” is not a defined class

✖ generating speeches [46.6s]

I ran is.partition(test) before and it returns TRUE.

Any help is greatly appreciated.

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