<commit_before>all: setup build

setup:
	Rscript -e 'install.packages(c("devtools","roxygen2","testthat","covr"),repo="http://cloud.r-project.org/")'
	Rscript -e 'devtools::install_github("hadley/pkgdown")'

build:
	Rscript -e 'devtools::document()'
	R CMD build .

install:
	Rscript -e 'devtools::install()'

docs:
	Rscript -e 'devtools::document(); pkgdown::build_site()'
.PHONY: docs

run:
	Rscript -e 'stencila::run()'

check:
	R CMD check $$(ls stencila_*.tar.gz | tail -n 1)

check-as-cran:
	R CMD check $$(ls stencila_*.tar.gz | tail -n 1) --as-cran

test:
	Rscript -e 'devtools::document(); devtools::test()'

cover:
	Rscript -e 'covr::package_coverage(".")'

clean:
	rm -rf ..Rcheck<commit_msg>Fix Makefile<commit_after>all: setup build

setup:
	Rscript -e 'install.packages(c("devtools","roxygen2","testthat","covr"),repo="http://cloud.r-project.org/")'
	Rscript -e 'devtools::install_github("hadley/pkgdown")'

build:
	Rscript -e 'devtools::document()'
	R CMD build .

install:
	Rscript -e 'devtools:::install()'

docs:
	Rscript -e 'devtools::document(); pkgdown::build_site()'
.PHONY: docs

run:
	Rscript -e 'stencila:::run()'

check:
	R CMD check $$(ls stencila_*.tar.gz | tail -n 1)

check-as-cran:
	R CMD check $$(ls stencila_*.tar.gz | tail -n 1) --as-cran

test:
	Rscript -e 'devtools::document(); devtools::test()'

cover:
	Rscript -e 'covr::package_coverage(".")'

clean:
	rm -rf ..Rcheck
{'fraction_non_alphanumeric': 0.19758351101634683, 'fraction_numerical': 0.0042643923240938165, 'mean_word_length': 4.770491803278689, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1927318', 'n_tokens_mistral': 585, 'n_tokens_neox': 566, 'n_words': 128}