Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mbennette68 opened this issue Jul 20, 2024 · 2 comments

Comments

@mbennette68
Copy link

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

@processing-r processing-r deleted a comment from nasaares Jul 22, 2024
@gaocegege
Copy link
Member

It should be a bug if you cannot reproduce it in RLang (Native RLang I mean).

@mbennette68
Copy link
Author

I appreciate the feedback.

It works in the Native RLang (i.e., RGui.exe, R.exe, as an RScript, and RStudio).
The error occurs in Processing.R so I think it is a Processing PDE issue but that's just my opinion.

image_2024-07-21_205445012

Thank you,
MB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants