Skip to content

Commit

Permalink
Fixing for CRAN
Browse files Browse the repository at this point in the history
  • Loading branch information
gvegayon committed Sep 1, 2023
1 parent b792f38 commit ad6c5a4
Show file tree
Hide file tree
Showing 12 changed files with 8,171 additions and 3,499 deletions.
17 changes: 15 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ update:

debug:
$(MAKE) clean && \
DEFM_CONFIG="-DBARRY_DEBUG" R CMD INSTALL .
DEFM_CONFIG="-DBARRY_DEBUG -fsanitize=address" R CMD INSTALL .

clean:
Rscript --vanilla -e 'devtools::clean_dll()'; \
Expand All @@ -29,4 +29,17 @@ README.md: README.Rmd

inst/NEWS: NEWS.md
Rscript -e "rmarkdown::pandoc_convert('NEWS.md', 'plain', output='inst/NEWS')" && \
head -n 80 inst/NEWS
head -n 80 inst/NEWS

# Thanls to Dirk Eddelbuettel for the Dockerfile
# https://dirk.eddelbuettel.com/blog/2015/01/18/
docker-check: clean build
docker run --rm -ti -v $(PWD):/mnt -w/mnt \
--cap-add=SYS_PTRACE \
rocker/r-devel-san \
make littler-install-deps

littler-install-deps:
apt update && apt install --no-install-suggests -y libssl-dev && \
RDscript --vanilla -e 'install.packages(c("Rcpp", "texreg"), repos = "https://cloud.r-project.org")' && \
RD CMD check --as-cran defm_0.1-1.tar.gz
3 changes: 3 additions & 0 deletions cleanup
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

rm -f config.* src/Makevars
Loading

0 comments on commit ad6c5a4

Please sign in to comment.