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

Does not work at all #41

Closed
petermott opened this issue Nov 20, 2024 · 2 comments
Closed

Does not work at all #41

petermott opened this issue Nov 20, 2024 · 2 comments

Comments

@petermott
Copy link

Hesitated before contributing this as it must be completely unsolvable - an oddity somewhere in my system. Still it can serve as a marker if others get the same result.

The script below shows what happens (i.e. nothing). There are no errors or warnings. This happens in RStudio with or without a separate graphics window and also using the RGui that is distributed with R. I tried omitting my .Rprofile and updating all packages but to no effect.

library(marquee)
library(grid)

# Make a plot
plot(mtcars$disp)

readme <- "Hello world?" 
a_grob <- marquee_grob(readme)

# Draw the grob but nothing happens
grid.draw(a_grob)

# A  rectangle drawn as expected
grid.rect(width=0.25, height=0.25, gp=gpar(fill="blue"))

My R is:

platform       x86_64-w64-mingw32               
arch           x86_64                           
os             mingw32                          
crt            ucrt                             
system         x86_64, mingw32                  
status                                          
major          4                                
minor          3.3                              
year           2024                             
month          02                               
day            29                               
svn rev        86002                            
language       R                                
version.string R version 4.3.3 (2024-02-29 ucrt)
nickname       Angel Food Cake 

The version of RStudio is:

RStudio 2024.09.1+394 "Cranberry Hibiscus" 
Release (a1fe401fc08c232d470278d1bc362d05d79753d9, 2024-11-03) for windows
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) 
RStudio/2024.09.1+394 Chrome/124.0.6367.243 Electron/30.4.0 Safari/537.36, Quarto 1.5.57
@teunbrand
Copy link
Contributor

I can reproduce this on windows using the windows png device.
When I set the device in 'Tools > General > Graphics > Backend' to anything other than 'Windows', (e.g. Cairo PNG or AGG) the graphics renders with the text displayed in the upper left corner.

@petermott
Copy link
Author

That fixes it.

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