[R-pkg-devel] Need help testing for Apple

David Winsemius dw|n@em|u@ @end|ng |rom comc@@t@net
Thu Mar 12 06:46:20 CET 2020



> On Mar 11, 2020, at 11:39 AM, Neal Fultz <nfultz using gmail.com> wrote:
> 
> Hello,
> 
> I am working on a package that does terminal graphics for hterm, but iterm2
> should work too; if you have an apple computer with iterm2, could you
> please help test it for me?
> 
> Installation:
> 
>    remotes::install_github("nfultz/osc1337")
> 
> Then run this demo:
> 
>    demo("barplot", "osc1337")
> 
> Try running it from a shell, and also inside screen and tmux, and let me
> know if you see the barplot in each case. Version numbers might be helpful
> too.
> 
> *** it does not work in rstudio ***

I'm not sure what is supposed to happen. On my device running the R.app I see:

> barplot(1:10, col=1:10)
Hit <Return> to see next plot: 

> osc1337()
/var/folders/68/vh2f8kzn09j8954r6q9100yh0000gn/T//RtmpC2yMm9/fileefa4178b3c1.png 
 480 480 
9684 
]1337;File=name=ZmlsZWVmYTQxNzhiM2MxLnBuZw==;width=480;height=480;inline=1:iVBORw0KGgoAAAANSUhEUgAAAeAAAAHgCAYAAAB91L6VAAAEGWlDQ1BrQ0dDb2xvclNwYWNlR2VuZXJpY1JHQgAAOI2NVV1oHFUUPrt

#and then a couple of pages of gibberish
#and finally...

detach("package:osc1337")
Warning message:
.onDetach failed in detach() for 'osc1337', details:
  call: dev.off(oldopts$i)
  error: QuartzBitmap_Output - unable to open file '/dev/null' 
----------------------------

In a terminal session I see much the same but with none of the garbage text:

>  demo("barplot", "osc1337")


	demo(barplot)
	---- ~~~~~~~

Type  <Return>	 to start : 

> library(osc1337)

> barplot(1:10, col=1:10)
Hit <Return> to see next plot: 

> osc1337()
/var/folders/68/vh2f8kzn09j8954r6q9100yh0000gn/T//Rtmp1oeFuH/file2b9d310dee06.png 
 480 480 
9684 

> detach("package:osc1337")
Warning message:
.onDetach failed in detach() for 'osc1337', details:
  call: dev.off(oldopts$i)
  error: QuartzBitmap_Output - unable to open file '/dev/null' 
------------------------

R version 3.6.1 (2019-07-05) -- "Action of the Toes"
Copyright (C) 2019 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin15.6.0 (64-bit)


HTH (but I not sure how it would)
-- 
David.

> 
> Thanks much!
> 
> - Neal Fultz
> 
> PS If anyone from rstudio is on the list, would you mind
> explaining RShadowPngGraphicsHandler.cpp and friends, and how it knows when
> to redraw when R returns to the REPL prompt?
> 
> I'd like to do something similar so that drawing plots in the terminal is
> less manual.
> 
> Haven't found much docs on the graphics engine other than a really old
> omegahat project, been trying to read engine.c but I'm slow.
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-package-devel using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel



More information about the R-package-devel mailing list