##// END OF EJS Templates
Fixed formatting errors in rmagic R() docstring...
Dav Clark -
Show More
@@ -434,12 +434,12 b' class RMagics(Magics):'
434 is printed if it would printed be when evaluating the same code
434 is printed if it would printed be when evaluating the same code
435 within a standard R REPL.
435 within a standard R REPL.
436
436
437 Nothing is returned to python by default in cell mode.
437 Nothing is returned to python by default in cell mode::
438
438
439 In [10]: %%R
439 In [10]: %%R
440 ....: Y = c(2,4,3,9)
440 ....: Y = c(2,4,3,9)
441 ....: summary(lm(Y~X))
441 ....: summary(lm(Y~X))
442
442
443 Call:
443 Call:
444 lm(formula = Y ~ X)
444 lm(formula = Y ~ X)
445
445
@@ -456,9 +456,9 b' class RMagics(Magics):'
456 Multiple R-squared: 0.6993,Adjusted R-squared: 0.549
456 Multiple R-squared: 0.6993,Adjusted R-squared: 0.549
457 F-statistic: 4.651 on 1 and 2 DF, p-value: 0.1638
457 F-statistic: 4.651 on 1 and 2 DF, p-value: 0.1638
458
458
459 In the notebook, plots are published as the output of the cell.
459 In the notebook, plots are published as the output of the cell::
460
460
461 %R plot(X, Y)
461 %R plot(X, Y)
462
462
463 will create a scatter plot of X bs Y.
463 will create a scatter plot of X bs Y.
464
464
@@ -484,19 +484,19 b' class RMagics(Magics):'
484 * If the cell is not None, the magic returns None.
484 * If the cell is not None, the magic returns None.
485
485
486 * If the cell evaluates as False, the resulting value is returned
486 * If the cell evaluates as False, the resulting value is returned
487 unless the final line prints something to the console, in
487 unless the final line prints something to the console, in
488 which case None is returned.
488 which case None is returned.
489
489
490 * If the final line results in a NULL value when evaluated
490 * If the final line results in a NULL value when evaluated
491 by rpy2, then None is returned.
491 by rpy2, then None is returned.
492
492
493 * No attempt is made to convert the final value to a structured array.
493 * No attempt is made to convert the final value to a structured array.
494 Use the --dataframe flag or %Rget to push / return a structured array.
494 Use the --dataframe flag or %Rget to push / return a structured array.
495
495
496 * If the -n flag is present, there is no return value.
496 * If the -n flag is present, there is no return value.
497
497
498 * A trailing ';' will also result in no return value as the last
498 * A trailing ';' will also result in no return value as the last
499 value in the line is an empty string.
499 value in the line is an empty string.
500
500
501 The --dataframe argument will attempt to return structured arrays.
501 The --dataframe argument will attempt to return structured arrays.
502 This is useful for dataframes with
502 This is useful for dataframes with
General Comments 0
You need to be logged in to leave comments. Login now