Simple expressions on plots, such as parse(text='x >= y') have been resulting in just a placeholder box (x box y and not the symbol) in my R plot labels in windows, R v 4.2.2. I haven't down an exhaustive test but <= and >= have this behavior. plot(1,1,main=parse(text="x >= y")) Has anyone else seen this? best David -- David K Stevens, PhD, PE, Professor Civil and Environmental Engineering Utah Water Research Laboratory Utah State University 8200 Old Main Hill Logan, UT 84322-8200 david.stevens at usu.edu (435) 797-3229 (office)
On 1/24/23 3:33 PM, David Stevens wrote:> Simple expressions on plots, such as parse(text='x >= y') have been > resulting in just a placeholder box (x box y and not the symbol) in my R > plot labels in windows, R v 4.2.2. I haven't down an exhaustive test but > <= and >= have this behavior. > > plot(1,1,main=parse(text="x >= y")) > > Has anyone else seen this?What's your "sessionInfo()"? I got the symbol, not problem. Spencer Graves sessionInfo() R version 4.2.2 (2022-10-31) Platform: x86_64-apple-darwin17.0 (64-bit) Running under: macOS Big Sur 11.7.2 Matrix products: default LAPACK: /Library/Frameworks/R.framework/Versions/4.2/Resources/lib/libRlapack.dylib locale: [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8 attached base packages: [1] stats graphics grDevices utils datasets methods [7] base loaded via a namespace (and not attached): [1] compiler_4.2.2 tools_4.2.2 rstudioapi_0.14 [4] remotes_2.4.2 > >> best > > David >
Also works for me on a Mac Ventura in the RStudio graphics device. Just for the heckuva it, does plot(1,1,main= quote( x >= y )) work? I shouldn't think so, but ... Cheers, Bert On Tue, Jan 24, 2023 at 1:43 PM David Stevens <david.stevens at usu.edu> wrote:> Simple expressions on plots, such as parse(text='x >= y') have been > resulting in just a placeholder box (x box y and not the symbol) in my R > plot labels in windows, R v 4.2.2. I haven't down an exhaustive test but > <= and >= have this behavior. > > plot(1,1,main=parse(text="x >= y")) > > Has anyone else seen this? > > best > > David > > -- > David K Stevens, PhD, PE, Professor > Civil and Environmental Engineering > Utah Water Research Laboratory > Utah State University > 8200 Old Main Hill > Logan, UT 84322-8200 > david.stevens at usu.edu > (435) 797-3229 (office) > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >[[alternative HTML version deleted]]
On Tue, 24 Jan 2023 21:33:48 +0000 David Stevens <david.stevens at usu.edu> wrote:> Simple expressions on plots, such as parse(text='x >= y') have been > resulting in just a placeholder box (x box y and not the symbol) in > my R plot labels in windows, R v 4.2.2.Here's a recently fixed bug that may be related: https://bugs.r-project.org/show_bug.cgi?id=18440 Does the R-patched build work for you? https://cloud.r-project.org/bin/windows/base/rpatched.html -- Best regards, Ivan