[Xts-commits] r759 - in pkg/xts/inst/api_example: . man src
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Thu Jan 17 03:40:06 CET 2013
Author: edd
Date: 2013-01-17 03:40:05 +0100 (Thu, 17 Jan 2013)
New Revision: 759
Modified:
pkg/xts/inst/api_example/README
pkg/xts/inst/api_example/man/checkOrder.Rd
pkg/xts/inst/api_example/man/linkXTS-package.Rd
pkg/xts/inst/api_example/src/checkOrder.c
Log:
o updated for changes in xtsAPI.h
Modified: pkg/xts/inst/api_example/README
===================================================================
--- pkg/xts/inst/api_example/README 2013-01-17 02:27:40 UTC (rev 758)
+++ pkg/xts/inst/api_example/README 2013-01-17 02:40:05 UTC (rev 759)
@@ -11,10 +11,9 @@
(2) In your .c files:
- #include "xts.h"
- #include "xts_stubs.c"
+ #include "xtsAPI.h"
-The _stubs_ file exports the functions that are
+This header file exports the functions that are
public in xts.
(3) Compile as you would with any other package:
Modified: pkg/xts/inst/api_example/man/checkOrder.Rd
===================================================================
--- pkg/xts/inst/api_example/man/checkOrder.Rd 2013-01-17 02:27:40 UTC (rev 758)
+++ pkg/xts/inst/api_example/man/checkOrder.Rd 2013-01-17 02:40:05 UTC (rev 759)
@@ -26,7 +26,7 @@
\author{ ~~who you are~~ }
\note{ ~~further notes~~
- ~Make other sections like Warning with \section{Warning }{....} ~
+ ~Make other sections ~
}
\seealso{ ~~objects to See Also as \code{\link{help}}, ~~~ }
\examples{
@@ -35,7 +35,7 @@
##-- or do help(data=index) for the standard data sets.
## The function is currently defined as
-function(x) { .Call('check_if_xts', x) }
+function(x) { .Call('xtsIs', x) }
}
% Add one or more standard keywords, see file 'KEYWORDS' in the
% R documentation directory.
Modified: pkg/xts/inst/api_example/man/linkXTS-package.Rd
===================================================================
--- pkg/xts/inst/api_example/man/linkXTS-package.Rd 2013-01-17 02:27:40 UTC (rev 758)
+++ pkg/xts/inst/api_example/man/linkXTS-package.Rd 2013-01-17 02:40:05 UTC (rev 759)
@@ -30,14 +30,15 @@
}
\references{
~~ Literature or other references for background information ~~
-}
+
~~ Optionally other standard keywords, one per line, from file KEYWORDS in ~~
~~ the R documentation directory ~~
+}
\keyword{ package }
\seealso{
~~ Optional links to other man pages, e.g. ~~
~~ \code{\link[<pkg>:<pkg>-package]{<pkg>}} ~~
}
\examples{
-~~ simple examples of the most important functions ~~
+#~~ simple examples of the most important functions ~~
}
Modified: pkg/xts/inst/api_example/src/checkOrder.c
===================================================================
--- pkg/xts/inst/api_example/src/checkOrder.c 2013-01-17 02:27:40 UTC (rev 758)
+++ pkg/xts/inst/api_example/src/checkOrder.c 2013-01-17 02:40:05 UTC (rev 759)
@@ -11,13 +11,10 @@
#include <R_ext/Rdynload.h> /* required by R */
/*
- The following header and .c file are from
- the include directory that is included with xts
- Note that they are included here as they are
- simple source files in xts.
+ The following header file is from the include directory that is
+ included with xts
*/
-#include "xts.h" /* function declaration and macros */
-#include "xts_stubs.c" /* function definitions */
+#include "xtsAPI.h" /* function declaration and macros */
SEXP check_order (SEXP x, SEXP incr, SEXP strict)
@@ -28,7 +25,7 @@
do_is_ordered is imported from the xts package.
All that is needed here is to call it.
*/
- ret = do_is_ordered(x, incr, strict);
+ ret = xtsIsOrdered(x, incr, strict);
UNPROTECT(1);
return ret;
}
More information about the Xts-commits
mailing list