search for: formatraw

Displaying 1 result from an estimated 1 matches for "formatraw".

Did you mean: format_raw
2017 Nov 09
1
formatting raw vectors with names
...ot;bbbb", "c")) a bbbb c 1 2 3 The problem is that EncodeRaw does not honor the requested width, in fact it doesn?t even get the width as a parameter. An easy fix would be to change: static void printNamedRawVector(Rbyte * x, int n, SEXP * names) PRINT_N_VECTOR(formatRaw(x, n, &w), Rprintf("%s%*s", EncodeRaw(x[k], ""), R_print.gap,"")) to static void printNamedRawVector(Rbyte * x, int n, SEXP * names) PRINT_N_VECTOR(formatRaw(x, n, &w), Rprintf("%*s%s%*s", w - 2, "", EncodeRaw(x[k], "&qu...