demo/simpleDemo.R

library(pkgKitten)

setwd(tempdir())                        # which gets deleted anyway

kitten("simpleTest")                    # unfortunately testing fails :-/

R <- shQuote(file.path(R.home(component="bin"), "R"))

Sys.setenv("R_TESTS"="")                # needed for R CMD check; thanks for the tip, Hadley
Sys.setenv("R_LIBS"=paste(.libPaths(), collapse=.Platform$path.sep))

system(paste(R, "CMD build simpleTest"))

system(paste(R, "CMD check simpleTest_1.0.tar.gz"))

Try the pkgKitten package in your browser

Any scripts or data that you put into this service are public.

pkgKitten documentation built on March 31, 2023, 9:58 p.m.