Skip to content
E-Sh4rkPublic

About

Work-in-progress static type-checker for R

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

Rsem

Rsem is a work-in-progress static type-checker for the R language. See tyr for more info.

Install

We plan to integrate Rsem into the tyr package.

For now, it must be installed in standalone by following these instructions (only tested on Linux).

  1. Installing the OCaml Package Manager OPAM, and set up an OCaml 5.3.0 environment:
opam switch create typr 5.3.0
eval $(opam env --switch=typr)
  1. Installing the parser dependencies by following the instructions on our fork of ocaml-tree-sitter-semgrep.

  2. You may need to export treesitter directories:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/.../r-parser/core/tree-sitter/lib/
export TREESITTER_INCDIR=/.../r-parser/core/tree-sitter/include/
export TREESITTER_LIBDIR=/.../r-parser/core/tree-sitter/lib/
  1. Installing this project dependencies, and building it:
make deps
make

Signatures of base R

The signatures of the functions of base R live in sigs/base.R, in the base namespace. They are processed before the tests (make test), and tyr uses them as its prelude.

Acknowledgments

This work is supported by the Czech Ministry of Education, Youth and Sports under program ERC-CZ, grant agreement LL2325, as well as by the Czech Science Foundation Grant No. 23-07580X.

About

Work-in-progress static type-checker for R

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages