Skip to content
Snippets Groups Projects
Commit a2e6277f authored by Stepan Sindelar's avatar Stepan Sindelar
Browse files

[GR-2798] Small fixes for lattice tests.

PullRequest: fastr/1100
parents b7106b9a ddf426e3
No related branches found
No related tags found
No related merge requests found
...@@ -81,6 +81,8 @@ public final class FastRGridExternalLookup { ...@@ -81,6 +81,8 @@ public final class FastRGridExternalLookup {
return CPalette.create(); return CPalette.create();
case "palette2": case "palette2":
return CPalette2.create(); return CPalette2.create();
case "devAskNewPage":
return new IgnoredGridExternal(RRuntime.LOGICAL_FALSE);
default: default:
return null; return null;
} }
......
...@@ -25,9 +25,11 @@ ...@@ -25,9 +25,11 @@
# prints a warning message instructing the user to use grid/lattice/ggplot2 instead # prints a warning message instructing the user to use grid/lattice/ggplot2 instead
eval(expression({ eval(expression({
graphicsWarning <- function(...) { graphicsWarning <- function(name) {
warning("FastR does not support graphics package and most of its functions. Please use grid package or grid based packages like lattice or ggplot2 instead.") function(...) {
NULL warning(paste0(name, " not supported.", " Note: FastR does not support graphics package and most of its functions. Please use grid package or grid based packages like lattice instead."))
NULL
}
} }
plot.default <- function (x, y = NULL, type = "p", xlim = NULL, ylim = NULL, plot.default <- function (x, y = NULL, type = "p", xlim = NULL, ylim = NULL,
...@@ -78,87 +80,81 @@ eval(expression({ ...@@ -78,87 +80,81 @@ eval(expression({
} }
# Note: explicitly supported functions: din # Note: explicitly supported functions: din
# Note: harmless functions that we do not override: co.intervals, hist.default
# Note: S3 dispatch functions that may dispatch to lattice/ggplot2/etc. implementation: hist, contour, lines, pairs, points, text
abline <- graphicsWarning; abline <- graphicsWarning("abline");
arrows <- graphicsWarning; arrows <- graphicsWarning("arrows");
assocplot <- graphicsWarning; assocplot <- graphicsWarning("assocplot");
axis <- graphicsWarning; axis <- graphicsWarning("axis");
Axis <- graphicsWarning; Axis <- graphicsWarning("Axis");
axis.Date <- graphicsWarning; axis.Date <- graphicsWarning("axis.Date");
axis.POSIXct <- graphicsWarning; axis.POSIXct <- graphicsWarning("axis.POSIXct");
axTicks <- graphicsWarning; axTicks <- graphicsWarning("axTicks");
barplot.default <- graphicsWarning; barplot.default <- graphicsWarning("barplot.default");
box <- graphicsWarning; box <- graphicsWarning("box");
boxplot.default <- graphicsWarning; boxplot.default <- graphicsWarning("boxplot.default");
boxplot.matrix <- graphicsWarning; boxplot.matrix <- graphicsWarning("boxplot.matrix");
bxp <- graphicsWarning; bxp <- graphicsWarning("bxp");
cdplot <- graphicsWarning; cdplot <- graphicsWarning("cdplot");
clip <- graphicsWarning; clip <- graphicsWarning("clip");
close.screen <- graphicsWarning; close.screen <- graphicsWarning("close.screen");
co.intervals <- graphicsWarning; contour.default <- graphicsWarning("contour.default");
contour <- graphicsWarning; coplot <- graphicsWarning("coplot");
contour.default <- graphicsWarning; curve <- graphicsWarning("curve");
coplot <- graphicsWarning; dotchart <- graphicsWarning("dotchart");
curve <- graphicsWarning; erase.screen <- graphicsWarning("erase.screen");
dotchart <- graphicsWarning; filled.contour <- graphicsWarning("filled.contour");
erase.screen <- graphicsWarning; fourfoldplot <- graphicsWarning("fourfoldplot");
filled.contour <- graphicsWarning; frame <- graphicsWarning("frame");
fourfoldplot <- graphicsWarning; grconvertX <- graphicsWarning("grconvertX");
frame <- graphicsWarning; grconvertY <- graphicsWarning("grconvertY");
grconvertX <- graphicsWarning; grid <- graphicsWarning("grid");
grconvertY <- graphicsWarning; identify <- graphicsWarning("identify");
grid <- graphicsWarning; image <- graphicsWarning("image");
hist <- graphicsWarning; image.default <- graphicsWarning("image.default");
hist.default <- graphicsWarning; layout <- graphicsWarning("layout");
identify <- graphicsWarning; layout.show <- graphicsWarning("layout.show");
image <- graphicsWarning; lcm <- graphicsWarning("lcm");
image.default <- graphicsWarning; legend <- graphicsWarning("legend");
layout <- graphicsWarning; lines.default <- graphicsWarning("lines.default");
layout.show <- graphicsWarning; locator <- graphicsWarning("locator");
lcm <- graphicsWarning; matlines <- graphicsWarning("matlines");
legend <- graphicsWarning; matplot <- graphicsWarning("matplot");
lines <- graphicsWarning; matpoints <- graphicsWarning("matpoints");
lines.default <- graphicsWarning; mosaicplot <- graphicsWarning("mosaicplot");
locator <- graphicsWarning; mtext <- graphicsWarning("mtext");
matlines <- graphicsWarning; pairs.default <- graphicsWarning("pairs.default");
matplot <- graphicsWarning; panel.smooth <- graphicsWarning("panel.smooth");
matpoints <- graphicsWarning; persp <- graphicsWarning("persp");
mosaicplot <- graphicsWarning; pie <- graphicsWarning("pie");
mtext <- graphicsWarning; plot.design <- graphicsWarning("plot.design");
pairs <- graphicsWarning; plot.function <- graphicsWarning("plot.function");
pairs.default <- graphicsWarning; plot.new <- graphicsWarning("plot.new");
panel.smooth <- graphicsWarning; plot.window <- graphicsWarning("plot.window");
persp <- graphicsWarning; plot.xy <- graphicsWarning("plot.xy");
pie <- graphicsWarning; points.default <- graphicsWarning("points.default");
plot.design <- graphicsWarning; polygon <- graphicsWarning("polygon");
plot.function <- graphicsWarning; polypath <- graphicsWarning("polypath");
plot.new <- graphicsWarning; rasterImage <- graphicsWarning("rasterImage");
plot.window <- graphicsWarning; rect <- graphicsWarning("rect");
plot.xy <- graphicsWarning; rug <- graphicsWarning("rug");
points <- graphicsWarning; screen <- graphicsWarning("screen");
points.default <- graphicsWarning; segments <- graphicsWarning("segments");
polygon <- graphicsWarning; smoothScatter <- graphicsWarning("smoothScatter");
polypath <- graphicsWarning; spineplot <- graphicsWarning("spineplot");
rasterImage <- graphicsWarning; split.screen <- graphicsWarning("split.screen");
rect <- graphicsWarning; stars <- graphicsWarning("stars");
rug <- graphicsWarning; stem <- graphicsWarning("stem");
screen <- graphicsWarning; strheight <- graphicsWarning("strheight");
segments <- graphicsWarning; stripchart <- graphicsWarning("stripchart");
smoothScatter <- graphicsWarning; strwidth <- graphicsWarning("strwidth");
spineplot <- graphicsWarning; sunflowerplot <- graphicsWarning("sunflowerplot");
split.screen <- graphicsWarning; symbols <- graphicsWarning("symbols");
stars <- graphicsWarning; text.default <- graphicsWarning("text.default");
stem <- graphicsWarning; title <- graphicsWarning("title");
strheight <- graphicsWarning; xinch <- graphicsWarning("xinch");
stripchart <- graphicsWarning; xspline <- graphicsWarning("xspline");
strwidth <- graphicsWarning; xyinch <- graphicsWarning("xyinch");
sunflowerplot <- graphicsWarning; yinch <- graphicsWarning("yinch");
symbols <- graphicsWarning;
text <- graphicsWarning;
text.default <- graphicsWarning;
title <- graphicsWarning;
xinch <- graphicsWarning;
xspline <- graphicsWarning;
xyinch <- graphicsWarning;
yinch <- graphicsWarning;
}), asNamespace("graphics")) }), asNamespace("graphics"))
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment