Skip to content

PDE forgets first object declaration in consecutive object declarations in PDE 4.3 #267

Open
@mbennette68

Description

@mbennette68

Hello,

I use Windows 10 Home 64
Processing 4.3
R Mode (R for Processing v1.0.9)

When declaring two objects in the R environment of Processing, each on its own line,
the PDE appears to forget the first object and just generates an error as follows:
"object 'val_1' not found".

Code:
val_1 <- 125
val_2 <- as.character(val_1)

print(val_1)
print(val_2)

image_2024-07-20_080552499

The same code, however, works as a script in the R Interpreter using RScript as show below:

image_2024-07-20_082822559

If the code is modified by changing line two as shown in the image, the program runs successfully as shown below:

image_2024-07-20_083604599

Don't know if it is a bug or object scoping issue but I thought I'd pass it along.

Thank you,
MB

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