sage - Suppress the extra white space from compiling in R -
whenever compile r code, lot of white spaces clog worksheet.
is there way suppress this, without changing code on same line using semicolons? i'm working in sage worksheets, on cloud.
i've made changes reduce whitespace in r mode sagemathcloud (https://cloud.sagemath.com); restart project update. however, due how sage works might not sufficient. if evaluate following in cell (in sage mode, or put %sage @ top), eliminate lot of additional whitespace in %r mode.
def r_eval0(*args, **kwds): return sage.interfaces.r.r.eval(sage.interfaces.r.r, *args, **kwds).strip().replace('\n\n','') sage_salvus.r_eval0 = r_eval0
Comments
Post a Comment