Skip to content

flowr-analysis/query-project-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to query an R project with flowR

This is a sample project that demonstrates how to use the flowR library to analyze and query R projects. Follow the steps below to set up and run the project.

Please note that this is a minimal example, with bigger files JavaScript's JSON.stringify might encounter a too-long string, in such cases it is up to you to serialize/compress the results (check out the flowR wiki, we offer several ways to handle large results).

Quickstart

  1. Clone the repository:

    git clone https://github.com/flowr-analysis/query-project-sample.git
    cd query-project-sample
  2. Install the dependencies:

    npm install
  3. Run the main script with a project folder and a file to dump the results to:

    npm run main -- sample-project output.json
  4. Check the output.json file for the query results.

Changing the Query

See src/query.ts to modify the query that is run against the R project.

About

Showcases how to analyze a project with flowR

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published