Re: [Rd] Fix minor typo in error message from grDevices

2018-02-13 Thread Tomas Kalibera
Fixed, thanks,
Tomas

On 02/12/2018 09:33 PM, John Blischak wrote:
> Hi,
>
> I fixed a minor typo in an error message from grDevices. Please see
> attached for a patch to revision 74246.
>
> Thanks,
>
> John
>
>
> __
> R-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel



[[alternative HTML version deleted]]

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] Fix minor typo in error message from grDevices

2018-02-12 Thread John Blischak
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