Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Install the Mac System Dependencies listed above.

Local Work Flow

This section captures the process of making changes to the code, write tests, build, install, and run the tests. This section does not include Git practices.

RStudio is great to writing R packages. However, the PythonEmbedInR package requires the code to be compiled in C. When building the package in RStudio, RStudio will drive CPU to 100% for a long period of time. This workflow is optimizing the tools by using syntax highlighting in RStudio for code changes, and Terminal for building (may use up to 35% CPU) and running tests.

Step 1: Add changes to the code base in RStudio (including writing tests)
Step 2: In Terminal:

Code Block
cd PythonEmbedInR
R CMD build .
R CMD install PythonEmbedInR_0.0.0.tar.gz

Step 3: In R:

Code Block
setwd(sprintf('%s/tests', getwd()))
source('testthat.R')