Hi,
I fixed a minor typo in an error message from grDevices. Please see
attached for a patch to revision 74246.
Thanks,
John
Index: src/library/grDevices/src/colors.c
===
--- src/library/grDevices/src/colors.c (revision 74246)
+++ src/library/grDevices/src/colors.c (working copy)
@@ -1529,7 +1529,7 @@
int n = length(val), *ians = INTEGER(ans);
for (int i = 0; i < PaletteSize; i++) ians[i] = (int)Palette[i];
if (n) {
- if (TYPEOF(val) != INTSXP) error("requires INTSXP argment");
+ if (TYPEOF(val) != INTSXP) error("requires INTSXP argument");
if (n > MAX_PALETTE_SIZE)
error(_("maximum number of colors is %d"), MAX_PALETTE_SIZE);
for (int i = 0; i < n; i++) Palette[i] = (rcolor)INTEGER(val)[i];
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel