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

Need to call print twice to get a plot to show #9

Open
dyavc opened this issue Aug 8, 2022 · 3 comments
Open

Need to call print twice to get a plot to show #9

dyavc opened this issue Aug 8, 2022 · 3 comments

Comments

@dyavc
Copy link

dyavc commented Aug 8, 2022

R 4.2.1, Dyalog 18.2.45749 64-bit Unicode on MS Windows 10
⍝ in R, I have installed packages usmap and ggplot2
⍝ I have downloaded rsconnect to d:\git\rsconnect
]load D:\git\rsconnect\rserve.dyalog
RS.start
r←⎕NEW #.RS.Rserve
r.eval 'library(usmap)'
r.eval 'library(ggplot2)'
r.eval 'print(plot_usmap())'
⍝ The R graphics window does show, but nothing is shown yet.
⍝ Need to repeat the r.eval print call again and the map is shown. r.eval 'print(plot_usmap())'

@kimmolinna
Copy link
Owner

This could be a timeout issue. If you do the same in the R the first print(plot_usmap() will take quite much time. You can try to set up the longer timeout in settings.json

@dyavc
Copy link
Author

dyavc commented Aug 9, 2022

Hi Kimmo,

Thanks for your reply! I have increased the timeout to 40000, but I still see the issue. I do not see any output, even after 40 seconds. In rgui console, I can see the map within 2 seconds.

In rsconnect, I can see output very quickly if I do the expression twice quickly.

Regards,

Vince

@kimmolinna
Copy link
Owner

Hi Vince,

I have to start Dyalog in Windows as admin that I can see the graphics window. The window won't get a focus automatically so I have to find it manually. Still there is a NOT RESPONDING problem which I try to figure out why...

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