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, or using VS Code locally.
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!
You can generate a 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.
This sample contains some randomly selected R files under ./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.
- Reviewing and comprehending existing R scripts
- Reusing a figure or data cleaning step of a publication
- Supporting maintenance and reproducibility
- Interactively understand the impact of parts while developing the script