DEV Community

Gabor Szabo
Gabor Szabo

Posted on • Originally published at code-maven.com

3

Local development environment for the data.table R project

After the partial success with the development environment for R-yaml we tried another R package called data.table as part of the Open Source Development Course. Eventually we managed to run the tests of this too.

This one actually had a lot of details in the README, but some parts were still missing, or at least were assumed to be obvious, which was not the case for us.

Clone the repo

git clone git@github.com:Rdatatable/data.table.git
cd data.table
Enter fullscreen mode Exit fullscreen mode

Start Docker container

docker run -it --name data-table --workdir /opt -v$(pwd):/opt r-base:4.2.3 bash
Enter fullscreen mode Exit fullscreen mode

Install external dependencies we'll need

apt-get update
apt-get install -y pandoc curl libcurl4-gnutls-dev texlive-latex-base texlive-fonts-extra texlive-latex-recommended texlive-fonts-recommended
Enter fullscreen mode Exit fullscreen mode

Install R packages

Rscript -e 'install.packages(c("knitr", "rmarkdown", "pandoc", "curl", "bit64", "bit", "xts", "nanotime", "zoo", "R.utils", "markdown"))'
Enter fullscreen mode Exit fullscreen mode

Run the build

R CMD build .
Enter fullscreen mode Exit fullscreen mode

Run check on the generated file

In the README they mention data.table_1.11.5.tar.gz, but probably due to a change in the version number, now we have data.table_1.14.9.tar.gz

We can run this

R CMD check data.table_1.14.9.tar.gz
Enter fullscreen mode Exit fullscreen mode

But if the README is updated with this then it will be out of date soon. Instead there could be an explanation that one needs to look at the generated file.
Alternatively this command would pick up the current file, assuming there is only one of them.

R CMD check $(ls -1 data.table_*)
Enter fullscreen mode Exit fullscreen mode

Exit the Docker container

exit
Enter fullscreen mode Exit fullscreen mode

Restart the Docker container

docker container start -i data-table
Enter fullscreen mode Exit fullscreen mode

Remove Docker container

docker rm data-table
Enter fullscreen mode Exit fullscreen mode

Image of AssemblyAI tool

Challenge Submission: SpeechCraft - AI-Powered Speech Analysis for Better Communication

SpeechCraft is an advanced real-time speech analytics platform that transforms spoken words into actionable insights. Using cutting-edge AI technology from AssemblyAI, it provides instant transcription while analyzing multiple dimensions of speech performance.

Read full post

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Immerse yourself in a wealth of knowledge with this piece, supported by the inclusive DEV Community—every developer, no matter where they are in their journey, is invited to contribute to our collective wisdom.

A simple “thank you” goes a long way—express your gratitude below in the comments!

Gathering insights enriches our journey on DEV and fortifies our community ties. Did you find this article valuable? Taking a moment to thank the author can have a significant impact.

Okay