Getting Started
Quick Start
Install:
pak::pak("BristolMyersSquibb/blockr")Run:
blockr::run_app()The blockr interface will open in your web browser. That’s it!
pak::pak()installs blockr and all five core packages (blockr.core, blockr.dplyr, blockr.ggplot, blockr.ui, blockr.io)blockr::run_app()launches the visual interface in your browser- You don’t need to know R programming—just copy and paste these commands
Your First Workflow
Once you’ve launched blockr with blockr::run_app(), you’ll see the visual interface in your browser. Let’s create a simple data workflow using blocks.
Step 1: Add a Data Source Block
- Click “Add Block” in the interface
- Select “Read Block” from the I/O category
- Choose “Upload” mode
- Upload a CSV file from your computer
Step 3: Add a Filter Block
- Click “Add Block” again
- Select “Filter Block” from the Data Wrangling category
- Connect it to your Read Block
- Use the dropdown menus to set filter conditions
Step 4: Add a Visualization Block
- Add a “Plot Block” from the Visualization category
- Select the type of plot you want (bar chart, scatter plot, etc.)
- Choose which columns to use for X and Y axes
- Customize colors and labels
Step 5: Export Your Results
- Add an “Export Block”
- Choose your output format (PNG, PDF, Excel, etc.)
- Click “Export” to save your results
Remember, blockr is entirely visual—you don’t need to write any code once the interface is running. All configuration happens through dropdown menus, checkboxes, and input fields.
Example Workflows
Data Wrangling Example
See the Data Wrangling Showcase for detailed examples of:
- Filtering rows based on conditions
- Selecting specific columns
- Creating new calculated columns
- Grouping and summarizing data
- Arranging rows in order
File I/O Example
The File I/O Showcase demonstrates:
- Reading different file formats (CSV, Excel, etc.)
- Loading data from URLs
- Handling multiple files at once
- Exporting results in various formats
Next Steps
- Explore the Showcase: Browse the Data Wrangling and File I/O showcases to see all available blocks
- Build Your Own: Start with your own data and experiment with different blocks
- Get Help: If you run into issues, open an issue on GitHub
Learning Resources
Each showcase page includes screenshots and descriptions of how blocks work. Since blockr is visual and interactive, the best way to learn is by trying it yourself!
Start with simple workflows (1-3 blocks) to get comfortable with the interface. As you become more familiar, you can build more complex multi-step pipelines.