An open API service indexing awesome lists of open source software.

https://github.com/flowr-analysis/vscode-dev-flowr-sample


https://github.com/flowr-analysis/vscode-dev-flowr-sample

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

        

# *flowR* VS Code Sample

This is a sample repository that you can use to try out the *flowR* extension for Visual Studio Code right in your browser using [VS Code.dev](https://vscode.dev/), or using VS Code locally.



[![](https://img.shields.io/badge/Open_in_VS_Code.dev-a32638?style=flat&logo=github)](https://vscode.dev/github/flowr-analysis/vscode-dev-flowr-sample)



## How to Use

To set up your own *flowR* workspace, simply click the button above. When you open one of the R files provided as part of the sample, the site will ask you to install the *flowR* extension through a popup in the bottom-right corner. Select it and accept the approval popup to install the *flowR* extension. Once the extension is installed, you can get started using *flowR*!

Alternatively, you can also clone this repository locally and open it with VS Code. Similarly to VS Code.dev, you will be prompted to install the *flowR* extension locally. Follow the same steps and you're ready to go!

## Things to Try

You can generate a [slice](https://github.com/flowr-analysis/flowr/wiki/Terminology#program-slice) of the currently highlighted variable in any of the sample code by using the **Slice for Cursor Position** command. All code that is not part of the generated slice will then be grayed out.

You can also view the reconstruction of a piece of code based on the current slice. The **Show Current Slice in Editor (Reconstruct)** command opens a view next to the current editor.

The extension has a lot more features to try! For a more extensive list, check out [the extension's README](https://github.com/flowr-analysis/vscode-flowr?tab=readme-ov-file#use).

### Example Use-Cases

This sample contains some randomly selected R files under [`./sample-files`](./sample-files/) you can use to play around - or use your own R files!
We have only modified these files to contain a meta-informational comment at the top, pointing to the full record.

1. Reviewing and comprehending existing R scripts
2. Reusing a figure or data cleaning step of a publication
3. Supporting maintenance and reproducibility
4. Interactively understand the impact of parts while developing the script