Closed lbraglia closed 9 years ago
Dear Luca,
thanks for sharing your .makerrc
. @lgatto maybe we should create a wiki to collect usefull .makerrc
entries? (e.g. using R devel #11, add spell checking #12, ...)
@lbraglia isn't the document
and roxygen
stuff the same?
Best wishes,
Sebastian
@lgatto maybe we should create a wiki to collect usefull .makerrc entries?
+1
Wiki or may be as a section in README, so it also exists as an maker installation.
I've read somewhere (probably in hadley's doc) that document
is for "more complex packages", but i can't find the link anymore, unfortunately. More follow up here (i hope)...
http://stackoverflow.com/questions/25104108/
[EDIT] i add below the important bits from SO
Roxygen does a live analysis of your source code: it loads all the code in your package, so it can create documentation using values in an R environment, not just source code. However, simulating package loading is rather tricky to do in general, so there are two ways to do it with roxygen:
roxygen2::roxygenise() just sources all files in the R/ directory
devtools::document() sources all files in the R/ directory, compiles source code in the src/ directory, loads data in the data/ directory and generally does an accurate job of simulating package loading.
If you have a simple package, you can use roxygenise(), but for anything more complicated, I recommend that you use document().
Hi,
in the meantime I add a few targets useful for continuous integration with r-travis (unix building) and r-appveyor (win building and deployment, example here).
GITHUB_USER := lbraglia
# Continuous integration
.travis:
wget https://raw.githubusercontent.com/craigcitro/r-travis/master/sample.travis.yml -O $(PKG)/.travis.yml
ci-add-travis: .travis
echo "[![Build Status](https://travis-ci.org/$(GITHUB_USER)/$(PKG).svg)](https://travis-ci.org/$(GITHUB_USER)/$(PKG))" >> $(PKG)/README.md
echo '^\.travis\.yml' >> $(PKG)/.Rbuildignore
.appveyor:
wget https://raw.githubusercontent.com/krlmlr/r-appveyor/master/sample.appveyor.yml -O $(PKG)/appveyor.yml
wget https://raw.githubusercontent.com/krlmlr/r-appveyor/master/.gitattributes -O $(PKG)/.gitattributes
ci-add-appveyor: .appveyor
echo '^appveyor\.yml' >> $(PKG)/.Rbuildignore
@ echo ;
@ echo " Now you can add a badge to your README.md " ;
@ echo " Go to https://ci.appveyor.com/project/$(GITHUB_USER)/$(PKG)/settings/badges " ;
HTH, Luca
Alternatively additional rules/tips'n tricks/ecc could be placed in the sample .makerrc
... that helps to keep README succinct (verbose comments to explain the targets could be placed in .makerrc
as well) but exists in a standard installation
I would suggest we have a way to document new recipes to avoid overcrowding the README.md
or main Makefile
. I have created a new RECIPES.md
to do that. People can then copy/paste into their .makerc
.
@lbraglia, could you add and document your recipes from this issue and close it?
@lgatto, sure!
Thanks!
Hi,
these are a few quick'n dirty targets from my
.makerrc
that could be useful IMHO (spell checking of documentation, testing withcodetools
, and other doc-related misc targets); tell me if you're maybe interested in one or more of themBye, Luca