The R Project SVN R

Rev

Rev 6994 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

# to be run from RHOME/src/library/$(PKG)/check
include $(RHOME)/src/gnuwin32/MkRules

run: $(PKG)-Ex.R
    @$(ECHO) "Running examples in '$(PKG)-Ex.R' ..."
    $(RHOME)/bin/rterm --vanilla R_LIBS="$(RLIB);$(R_LIBS)" < $(PKG)-Ex.R > $(PKG)-Ex.Rout


$(PKG)-Ex.R: $(RLIB)/$(PKG)/R-ex/*.R
    @$(ECHO) "Massaging examples into '$(PKG)-Ex.R' ..."
    @$(SED) -e s/@PKG@/$(PKG)/ -e s+@RLIB@+$(RLIB)+ \
      $(RHOME)/src/gnuwin32/check/makeRex.R > MakeRex.R
    @$(RHOME)/bin/rterm  --quiet --vanilla < makeRex.R > nul
    @$(RM) makeRex.R