zatonovo / crant Goto Github PK
View Code? Open in Web Editor NEWTools for building R packages for CRAN
Tools for building R packages for CRAN
From Kurt Hornik:
These contain a top-level README.md file, which is now used to generate
a corresponding README.html file on the CRAN package web pages.
Pls check whether your README.md file is in fact appropriate for this
(e.g., not assuming that the content will only be accessed from the
github project page): if not, pls use .Rbuildignore to have README.md
excluded from the versions for publication on CRAN.
Appears that the version of sed is not compatible. Need to figure out a clean way of supporting os x.
rant /path/to/my/package
should work, also simply rant
if I run
rpackage -r http://cloud.r-project.org/ igraph reshape2
igraph
depend on reshape2
, so it will first install reshape2
.
Then it starts to deal with reshape2
, and it will install reshape2
again.
A better way might be: finding the dependencies of all packages first, do a topological sort to the dependency graph, the install packages from the first to the end.
Also, if we want to install several packages (similar as the above example), and the first package installation fails, then the program will continue to install next package.
It might be better for an early exit.
If we do a topological sort on the dependency graph, and find any package that cannot be installed, we just exit the program and don't continue.
Calling roxygenize on the NAMESPACE file ends up in a blank file that removes all exports and imports. What was the intention with roxygenize-ing the NAMESPACE file?
For -X
switch. rab()
applies some sensible post-processing. See also discussion in yihui/knitr#647.
Turn off using -s
switch (?)
rant
is already the Ruby build driver:
Similar to make, the rant commandline tool reads a file called Rantfile, which
contains task definitions. Unlike make, however, an Rantfile is just a valid
script written in the Ruby programming language. Since Ruby comes with many
useful libraries and is portable across many different operating systems, it
is easy to write portable Rantfiles.
rpackage
should return a non-zero exit status if a package build fails.
✗ rpackage ROracle
Installing ROracle
Installing package into ‘/home/anthony/R’
(as ‘lib’ is unspecified)
trying URL 'http://cran.revolutionanalytics.com/src/contrib/ROracle_1.3-1.tar.gz'
Content type 'application/octet-stream' length 308252 bytes (301 KB)
==================================================
downloaded 301 KB
* installing *source* package ‘ROracle’ ...
** package ‘ROracle’ successfully unpacked and MD5 sums checked
configure: error: OCI libraries not found
ERROR: configuration failed for package ‘ROracle’
* removing ‘/home/anthony/R/ROracle’
The downloaded source packages are in
‘/tmp/RtmpTRflbI/downloaded_packages’
Warning message:
In install.packages("ROracle", repos = "http://cran.revolutionanalytics.com", :
installation of package ‘ROracle’ had non-zero exit status
✗ echo $?
0
✗
Syntax: rant -u #
0.0.15
+ rant -u 3
-> 0.0.16
1.0.1-3
+ rant -u 2
-> 1.1.0-0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.