prettifyPython {prettifyAddins}R Documentation

Prettify Python

Description

Prettify Python code.

Usage

prettifyPython(contents = NA)

Arguments

contents

the code to be prettified; there are three possibilities for this argument: NA (default), to use the file currently opened in RStudio; the path to a file; or the code given as a character vector

Value

The pretty code in a character string.

Note

This function requires black.


[Package prettifyAddins version 2.6.1 Index]