<commit_before>RWinOut
=========
Example of IPython extension with a simple dirty hack which solves (workaround :) the R magic output problem on Windows OS. For the error description, check [here](https://bitbucket.org/rpy2/rpy2/issues/125/set_writeconsole-not-working-on-windows).

It can be used as starting point to make much more cool stuff! Check the [official doc](http://ipython.readthedocs.io/en/stable/config/index.html#extending-and-integrating-with-ipython) for more information.

Installation
-------------
It was tested using Windows versions of Python 3.6 and Anaconda 4.4 with the R-essentials package.

Copy `RWinOut` directly from the repository using the `curl` command:

    !curl -O "https://raw.githubusercontent.com/vitorcurtis/RWinOut/master/RWinOut.py"

or download it to the working directory.

#### Dependencies
It requires the Python package *rpy2* 2.8.X and the R package *R.utils*.

Usage
-----
Just load it:

    %load_ext RWinOut

instead of the rpy2.ipython extensions.

License
-------
*RWinOut* is licensed under the MIT license. See the license file for details.
<commit_msg>Better description<commit_after>RWinOut
=========
Example of IPython extension with a simple dirty hack which solves (workaround :) the R magic output problem on Windows OS. For the error description, check [here](https://bitbucket.org/rpy2/rpy2/issues/125/set_writeconsole-not-working-on-windows).

It can be used as starting point to make much more cool stuff! Check the [official doc](http://ipython.readthedocs.io/en/stable/config/index.html#extending-and-integrating-with-ipython) for more information.

Installation
-------------
It was tested using Windows versions of Python 3.6 and Anaconda 4.4 with the R-essentials package.

Copy `RWinOut` directly from the repository using the `curl` command inside your notebook with:

    !curl -O "https://raw.githubusercontent.com/vitorcurtis/RWinOut/master/RWinOut.py"

or download it to the working directory.

#### Dependencies
It requires the Python package *rpy2* 2.8.X and the R package *R.utils*.

Usage
-----
Just load it:

    %load_ext RWinOut

instead of the rpy2.ipython extensions.

License
-------
*RWinOut* is licensed under the MIT license. See the license file for details.

{'fraction_non_alphanumeric': 0.11106175033318526, 'fraction_numerical': 0.011550422034651266, 'mean_word_length': 4.004444444444444, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3645678', 'n_tokens_mistral': 697, 'n_tokens_neox': 663, 'n_words': 249}