Processing.R icon indicating copy to clipboard operation
Processing.R copied to clipboard

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

Open mbennette68 opened this issue 7 months ago • 2 comments

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

mbennette68 avatar Jul 20 '24 15:07 mbennette68