...
Table of Contents | ||
---|---|---|
|
Mac System Dependencies
- Xcode
- OpenSSL (https://github.com/sqlcipher/openssl-xcode)
- wget
- OpenSSL
- wget
Notes:
The easiest instruction I found was to use:
Code Block |
---|
brew install wget |
This command will install other wget
dependencies including openssl
. Don't forget to read the output of the brew
command and add openssl
to PATH
in ~/.bash_profile
.
Common errors and fixes:
Mac - libcryto.a not found
...
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') |