forked from RcppCore/Rcpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNEWS.Rd
More file actions
2314 lines (2283 loc) · 115 KB
/
NEWS.Rd
File metadata and controls
2314 lines (2283 loc) · 115 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
\name{NEWS}
\title{News for Package \pkg{Rcpp}}
\newcommand{\ghpr}{\href{https://github.com/RcppCore/Rcpp/pull/#1}{##1}}
\newcommand{\ghit}{\href{https://github.com/RcppCore/Rcpp/issues/#1}{##1}}
\section{Changes in Rcpp version 0.12.15 (2018-0x-yy)}{
\itemize{
\item Changes in Rcpp API:
\itemize{
\item Calls from exception handling to \code{Rf_warning()} now correctly
set an initial format string (Dirk in \ghpr{777} fixing \ghit{776}).
\item The 'new' Date and Datetime vectors now have \code{is_na} methods
too. (Dirk in \ghpr{783} fixing \ghit{781}).
}
\item Changes in Rcpp Attributes:
\itemize{
\item Addressed a missing Rcpp namespace prefix when generating a C++
interface (James Balamuta in \ghpr{779}).
}
\item Changes in Rcpp Documentation:
\itemize{
\item The Rcpp FAQ now shows \code{Rcpp::Rcpp.plugin.maker()} and not the
outdated \code{:::} use applicable non-exported functions.
}
}
}
\section{Changes in Rcpp version 0.12.14 (2017-11-17)}{
\itemize{
\item Changes in Rcpp API:
\itemize{
\item New const iterators functions \code{cbegin()} and \code{cend()}
added to \code{MatrixRow} as well (Dan Dillon in \ghpr{750}).
\item The \code{Rostream} object now contains a \code{Buffer} rather than
allocating one (Kirill Müller in \ghpr{763}).
\item New \code{DateVector} and \code{DatetimeVector} classes are now the
default fully deprecating the old classes as announced one year ago.
}
\item Changes in Rcpp Package:
\itemize{
\item DESCRIPTION file now list doi information per CRAN suggestion.
}
\item Changes in Rcpp Documentation:
\itemize{
\item Update CITATION file with doi information and PeerJ preprint.
}
}
}
\section{Changes in Rcpp version 0.12.13 (2017-09-24)}{
\itemize{
\item Changes in Rcpp API:
\itemize{
\item New const iterators functions \code{cbegin()} and \code{cend()} have
been added to several vector and matrix classes (Dan Dillon and James
Balamuta in \ghpr{748}) starting to address \ghit{741}).
}
\item Changes in Rcpp Modules:
\itemize{
\item Misplacement of one parenthesis in macro \code{LOAD_RCPP_MODULE}
was corrected (Lei Yu in \ghpr{737})
}
\item Changes in Rcpp Documentation:
\itemize{
\item Rewrote the macOS sections to depend on official documentation due
to large changes in the macOS toolchain. (James Balamuta in \ghpr{742}
addressing issue \ghit{682}).
\item Added a new vignette \sQuote{Rcpp-introduction} based on new PeerJ
preprint, renamed existing introduction to \sQuote{Rcpp-jss-2011}.
\item Transitioned all vignettes to the 'pinp' RMarkdown template
(James Balamuta and Dirk Eddelbuettel in \ghpr{755} addressing
issue \ghit{604}).
\item Added an entry on running `compileAttributes()` twice to the
Rcpp-FAQ (\ghit{#745}).
}
}
}
\section{Changes in Rcpp version 0.12.12 (2017-07-13)}{
\itemize{
\item Changes in Rcpp API:
\itemize{
\item The \code{tinyformat.h} header now ends in a newline (\ghit{701}).
\item Fixed rare protection error that occurred when fetching stack traces
during the construction of an Rcpp exception (Kirill Müller in \ghpr{706}).
\item Compilation is now also possibly on Haiku-OS (Yo Gong in \ghpr{708}
addressing \ghit{707}).
\item Dimension attributes are explicitly cast to \code{int} (Kirill
Müller in \ghpr{715}).
\item Unused arguments are no longer declared (Kirill Müller in
\ghpr{716}).
\item Visibility of exported functions is now supported via the R macro
\code{atttribute_visible} (Jeroen Ooms in \ghpr{720}).
\item The \code{no_init()} constructor accepts \code{R_xlen_t} (Kirill
Müller in \ghpr{730}).
\item Loop unrolling used \code{R_xlen_t} (Kirill Müller in \ghpr{731}).
\item Two unused-variables warnings are now avoided (Jeff Pollock in
\ghpr{732}).
}
\item Changes in Rcpp Attributes:
\itemize{
\item Execute tools::package_native_routine_registration_skeleton
within package rather than current working directory (JJ in \ghpr{697}).
\item The R portion no longer uses \code{dir.exists} to no require R 3.2.0
or newer (Elias Pipping in \ghpr{698}).
\item Fix native registration for exports with name attribute (JJ in \ghpr{703}
addressing \ghit{702}).
\item Automatically register init functions for Rcpp Modules (JJ in \ghpr{705}
addressing \ghit{704}).
\item Add Shield around parameters in Rcpp::interfaces (JJ in \ghpr{713}
addressing \ghit{712}).
\item Replace dot (".") with underscore ("_") in package names when generating
native routine registrations (JJ in \ghpr{722} addressing \ghit{721}).
\item Generate C++ native routines with underscore ("_") prefix to avoid
exporting when standard exportPattern is used in NAMESPACE (JJ in
\ghpr{725} addressing \ghit{723}).
}
}
}
\section{Changes in Rcpp version 0.12.11 (2017-05-20)}{
\itemize{
\item Changes in Rcpp API:
\itemize{
\item Rcpp::exceptions can now be constructed without a call stack (Jim
Hester in \ghpr{663} addressing \ghit{664}).
\item Somewhat spurious compiler messages under very verbose settings are
now suppressed (Kirill Mueller in \ghpr{670}, \ghpr{671}, \ghpr{672},
\ghpr{687}, \ghpr{688}, \ghpr{691}).
\item Refreshed the included \code{tinyformat} template library
(James Balamuta in \ghpr{674} addressing \ghit{673}).
\item Added \code{printf}-like syntax support for exception classes and
variadic templating for \code{Rcpp::stop} and \code{Rcpp::warning}
(James Balamuta in \ghpr{676}).
\item Exception messages have been rewritten to provide additional
information. (James Balamuta in \ghpr{676} and \ghpr{677} addressing
\ghit{184}).
\item One more instance of \code{Rf_mkString} is protected from garbage
collection (Dirk in \ghpr{686} addressing \ghit{685}).
\item Two exception specification that are no longer tolerated by
\code{g++-7.1} or later were removed (Dirk in \ghpr{690} addressing
\ghit{689})
}
\item Changes in Rcpp Documentation:
\itemize{
\item Added a Known Issues section to the Rcpp FAQ vignette
(James Balamuta in \ghpr{661} addressing \ghit{628}, \ghit{563},
\ghit{552}, \ghit{460}, \ghit{419}, and \ghit{251}).
}
\item Changes in Rcpp Sugar:
\itemize{
\item Added sugar function \code{trimws} (Nathan Russell in \ghpr{680}
addressing \ghit{679}).
}
\item Changes in Rcpp Attributes:
\itemize{
\item Automatically generate native routine registrations (JJ in \ghpr{694})
\item The plugins for C++11, C++14, C++17 now set the values R 3.4.0 or
later expects; a plugin for C++98 was added (Dirk in \ghpr{684} addressing
\ghit{683}).
}
\item Changes in Rcpp support functions:
\itemize{
\item The \code{Rcpp.package.skeleton()} function now creates a package
registration file provided R 3.4.0 or later is used (Dirk in \ghpr{692})
}
}
}
\section{Changes in Rcpp version 0.12.10 (2017-03-17)}{
\itemize{
\item Changes in Rcpp API:
\itemize{
\item Added new size attribute aliases for number of rows and columns in
DataFrame (James Balamuta in \ghpr{638} addressing \ghit{630}).
\item Fixed single-character handling in \code{Rstreambuf} (Iñaki Ucar in
\ghpr{649} addressing \ghit{647}).
\item XPtr gains a parameter \code{finalizeOnExit} to enable running the
finalizer when R quits (Jeroen Ooms in \ghpr{656} addressing \ghit{655}).
}
\item Changes in Rcpp Sugar:
\itemize{
\item Fixed sugar functions \code{upper_tri()} and \code{lower_tri()}
(Nathan Russell in \ghpr{642} addressing \ghit{641}).
\item The \code{algorithm.h} file now accomodates the Intel compiler
(Dirk in \ghpr{643} and Dan in \ghpr{645} addressing issue \ghit{640}).
}
\item Changes in Rcpp Attributes:
\itemize{
\item The C++17 standard is supported with a new plugin (used eg for
\code{g++-6.2}).
}
\item Changes in Rcpp Documentation:
\itemize{
\item An overdue explanation of how C++11, C++14, and C++17 can be used
was added to the Rcpp FAQ.
}
}
}
\section{Changes in Rcpp version 0.12.9 (2017-01-14)}{
\itemize{
\item Changes in Rcpp API:
\itemize{
\item The exception stack message is now correctly demangled on all
compiler versions (Jim Hester in \ghpr{598})
\item Date and Datetime object and vector now have format methods and
\code{operator<<} support (\ghpr{599}).
\item The \code{size} operator in \code{Matrix} is explicitly referenced
avoiding a g++-6 issues (\ghpr{607} fixing \ghit{605}).
\item The underlying date calculation code was updated (\ghpr{621},
\ghpr{623}).
\item Addressed improper diagonal fill for non-symmetric matrices
(James Balamuta in \ghpr{622} addressing \ghit{619})
}
\item Changes in Rcpp Sugar:
\itemize{
\item Added new Sugar function \code{sample()} (Nathan Russell in
\ghpr{610} and \ghpr{616}).
\item Added new Sugar function \code{Arg()} (James Balamuta in
\ghpr{626} addressing \ghit{625}).
}
\item Changes in Rcpp unit tests
\itemize{
\item Added Environment::find unit tests and an Environment::get(Symbol)
test (James Balamuta in \ghpr{595} addressing issue \ghit{594}).
\item Added diagonal matrix fill tests
(James Balamuta in \ghpr{622} addressing \ghit{619})
}
\item Changes in Rcpp Documentation:
\itemize{
\item Exposed pointers macros were included in the Rcpp Extending vignette
(MathurinD; James Balamuta in \ghpr{592} addressing \ghit{418}).
\item The file \code{Rcpp.bib} move to directory \code{bib} which is
guaranteed to be present (\ghpr{631}).
}
\item Changes in Rcpp build system
\itemize{
\item Travis CI now also calls \CRANpkg{covr} for coverage analysis (Jim
Hester in PR \ghpr{591})
}
}
}
\section{Changes in Rcpp version 0.12.8 (2016-11-16)}{
\itemize{
\item Changes in Rcpp API:
\itemize{
\item String and vector elements now use extended \code{R_xlen_t} indices
(Qiang in PR \ghpr{560})
\item Hashing functions now return unsigned int (Qiang in PR \ghpr{561})
\item Added static methods \code{eye()}, \code{ones()}, and \code{zeros()}
for select matrix types (Nathan Russell in PR \ghpr{569})
\item The exception call stack is again correctly reported; print methods
and tests added too (Jim Hester in PR \ghpr{582} fixing \ghit{579})
\item Variatic macros no longer use a GNU extensions (Nathan in PR
\ghpr{575})
\item Hash index functions were standardized on returning unsigned
integers (Also PR \ghpr{575})
}
\item Changes in Rcpp Sugar:
\itemize{
\item Added new Sugar functions \code{rowSums()}, \code{colSums()},
\code{rowMeans()}, \code{colMeans()} (PR \ghpr{551} by Nathan Russell
fixing \ghit{549})
\item \code{Range} Sugar now used \code{R_xlen_t} type for start/end
(PR \ghpr{568} by Qiang Kou)
\item Defining \code{RCPP_NO_SUGAR} no longer breaks the build.
(PR \ghpr{585} by Daniel C. Dillon)
}
\item Changes in Rcpp unit tests
\itemize{
\item A test for expression vectors was corrected.
\item The constructor test for datetime vectors reflects the new classes
which treats Inf correctly (and still as a non-finite value)
}
\item Changes in Rcpp Attributes
\itemize{
\item An 'empty' return was corrected (PR \ghpr{589} fixing issue
\ghit{588}, and with thanks to Duncan Murdoch for the heads-up)
}
\item Updated Date and Datetime vector classes:
\itemize{
\item The \code{DateVector} and \code{DatetimeVector} classes were renamed
with a prefix \code{old}; they are currently \code{typedef}'ed to the
existing name (\ghpr{557})
\item New variants \code{newDateVector} and \code{newDatetimeVector} were
added based on \code{NumericVector} (also \ghpr{557}, \ghpr{577},
\ghpr{581}, \ghpr{587})
\item By defining \code{RCPP_NEW_DATE_DATETIME_VECTORS} the new classes
can activated. We intend to make the new classes the default no sooner
than twelve months from this release.
\item The \code{capabilities()} function can also be used for presence of
this feature
}
}
}
\section{Changes in Rcpp version 0.12.7 (2016-09-04)}{
\itemize{
\item Changes in Rcpp API:
\itemize{
\item The \code{NORET} macro is now defined if it was not already defined
by R itself (Kevin fixing issue \ghit{512}).
\item Environment functions get() & find() now accept a Symbol
(James Balamuta in \ghpr{513} addressing issue \ghit{326}).
\item Several uses of \code{Rf_eval} were replaced by the preferred
\code{Rcpp::Rcpp_eval} (Qiang in PR \ghpr{523} closing \ghit{498}).
\item Improved Autogeneration Warning for RcppExports
(James Balamuta in \ghpr{528} addressing issue \ghit{526}).
\item Fixed invalid C++ prefix identifiers in auto-generated code
(James Balamuta in \ghpr{528} and \ghpr{531} addressing issue
\ghit{387}; Simon Dirmeier in \ghpr{548}).
\item String constructors now set default UTF-8 encoding (Qiang Kou in
\ghpr{529} fixing \ghit{263}).
\item Add variadic variants of the \code{RCPP_RETURN_VECTOR} and
\code{RCPP_RETURN_MATRIX} macro when C++11 compiler used (Artem Klevtsov
in \ghpr{537} fixing \ghit{38}).
}
\item Changes in Rcpp build system
\itemize{
\item Travis CI is now driven via \code{run.sh} from our fork, and deploys
all packages as .deb binaries using our PPA where needed (Dirk in
\ghpr{540} addressing issue \ghit{517}).
}
\item Changes in Rcpp unit tests
\itemize{
\item New unit tests for random number generators the R namespace which
call the standalone Rmath library. (James Balamuta in \ghpr{514}
addressing issue \ghit{28}).
}
\item Changes in Rcpp Examples:
\itemize{
\item Examples that used cxxfunction() from the inline package have been
rewritten to use either sourceCpp() or cppFunction()
(James Balamuta in \ghpr{541}, \ghpr{535}, \ghpr{534}, and \ghpr{532}
addressing issue \ghit{56}).
}
}
}
\section{Changes in Rcpp version 0.12.6 (2016-07-18)}{
\itemize{
\item Changes in Rcpp API:
\itemize{
\item The \code{long long} data type is used only if it is available,
to avoid compiler warnings (Kirill Müller in \ghpr{488}).
\item The compiler is made aware that \code{stop()} never returns, to
improve code path analysis (Kirill Müller in \ghpr{487} addressing issue
\ghit{486}).
\item String replacement was corrected (Qiang in \ghpr{479} following
mailing list bug report by Masaki Tsuda)
\item Allow for UTF-8 encoding in error messages via
\code{RCPP_USING_UTF8_ERROR_STRING} macro (Qin Wenfeng in \ghpr{493})
\item The R function \code{Rf_warningcall} is now provided as well (as
usual without leading \code{Rf_}) (\ghpr{497} fixing \ghit{495})
}
\item Changes in Rcpp Sugar:
\itemize{
\item Const-ness of \code{min} and \code{max} functions has been corrected.
(Dan Dillon in PR \ghpr{478} fixing issue \ghit{477}).
\item Ambiguities for matrix/vector and scalar operations have been fixed
(Dan Dillon in PR \ghpr{476} fixing issue \ghit{475}).
\item New \code{algorithm} header using iterator-based approach for
vectorized functions (Dan in PR \ghpr{481} revisiting PR \ghpr{428} and
addressing issue \ghit{426}, with futher work by Kirill in PR \ghpr{488}
and Nathan in \ghpr{503} fixing issue \ghit{502}).
\item The \code{na_omit()} function is now faster for vectors without
\code{NA} values (Artem Klevtsov in PR \ghpr{492})
}
\item Changes in Rcpp Attributes:
\itemize{
\item Add \code{cacheDir} argument to \code{sourceCpp()} to enable caching of
shared libraries across R sessions (JJ in \ghpr{504}).
\item Code generation now deals correctly which packages containing a dot
in their name (Qiang in \ghpr{501} fixing \ghit{500}).
}
\item Changes in Rcpp Documentation:
\itemize{
\item A section on default parameters was added to the Rcpp FAQ vignette
(James Balamuta in \ghpr{505} fixing \ghit{418}).
\item The Rcpp-attributes vignette is now mentioned more prominently in
question one of the Rcpp FAQ vignette.
\item The Rcpp Quick Reference vignette received a facelift with new
sections on Rcpp attributes and plugins begin added. (James Balamuta in
\ghpr{509} fixing \ghit{484}).
\item The bib file was updated with respect to the recent JSS publication
for RProtoBuf.
}
}
}
\section{Changes in Rcpp version 0.12.5 (2016-05-14)}{
\itemize{
\item Changes in Rcpp API:
\itemize{
\item The checks for different C library implementations now also check for Musl
used by Alpine Linux (Sergio Marques in PR \ghpr{449}).
\item \code{Rcpp::Nullable} works better with Rcpp::String (Dan Dillon in
PR \ghpr{453}).
}
\item Changes in Rcpp Attributes:
\itemize{
\item R 3.3.0 Windows with Rtools 3.3 is now supported (Qin Wenfeng in PR
\ghpr{451}).
\item Correct handling of dependent file paths on Windows (use winslash = "/").
}
\item Changes in Rcpp Modules:
\itemize{
\item An apparent race condition in Module loading seen with R 3.3.0 was
fixed (Ben Goodrich in \ghpr{461} fixing \ghit{458}).
\item The (older) \code{loadRcppModules()} is now deprecated in favour of
\code{loadModule()} introduced around R 2.15.1 and Rcpp 0.9.11 (PR \ghpr{470}).
}
\item Changes in Rcpp support functions:
\itemize{
\item The \code{Rcpp.package.skeleton()} function was again updated in
order to create a \code{DESCRIPTION} file which passes \code{R CMD check}
without notes. warnings, or error under R-release and R-devel (PR \ghpr{471}).
\item A new function \code{compilerCheck} can test for minimal \code{g++}
versions (PR \ghpr{474}).
}
}
}
\section{Changes in Rcpp version 0.12.4 (2016-03-22)}{
\itemize{
\item Changes in Rcpp API:
\itemize{
\item New accessors \code{as()} and \code{clone()} were added to the
\code{Nullable} class (Dan in PR \ghpr{423} closing \ghit{421})
\item The \code{Nullable<>::operator SEXP()} and
\code{Nullable<>::get()} now also work for \code{const} objects
(Kirill Mueller in PR \ghpr{417}).
\item A subsetting error was fixed (Qiang via \ghpr{432} closing
\ghit{431}).
}
\item Changes in Rcpp Sugar:
\itemize{
\item Added new Sugar function \code{median()} (Nathan in PR \ghpr{425}
closing \ghit{424})
\item Added new Sugar function \code{cbind()} (Nathan in PR \ghpr{447}
closing \ghit{407})
}
\item Changes in Rcpp Attributes:
\itemize{
\item A plugin for C++14 was added (Dan in PR \ghpr{427})
}
\item Changes in Rcpp Documentation:
\itemize{
\item An entry was added to the Rcpp-FAQ vignette describing the required
packages for vignette building (\ghit{422}).
\item Use on OS X was further detailed (James Balamuta in \ghpr{433} with
further review by Bob Rudis).
\item An entry was added concerning the hard-code limit of arguments to
some constructor and function (cf \ghit{435}).
\item The Rcpp-FAQ vignette now contains a table of content.
\item Typos and indentation were corrected in the Rcpp Sugar vignette
(\ghpr{445} by Colin Gillespie).
}
}
}
\section{Changes in Rcpp version 0.12.3 (2016-01-10)}{
\itemize{
\item Changes in Rcpp API:
\itemize{
\item Const iterators now \code{CharacterVector} now behave like regular
iterators (PR \ghpr{404} by Dan fixing \ghit{362}).
\item Math operators between matrix and scalars type have been added (PR
\ghpr{406} by Qiang fixing \ghit{365}).
\item A missing \code{std::hash} function interface for
\code{Rcpp::String} has been addded (PR \ghpr{408} by Qiang fixing
\ghit{84}).
}
\item Changes in Rcpp Attributes:
\itemize{
\item Avoid invalid function names when generating C++ interfaces (PR
\ghpr{403} by JJ fixing \ghit{402}).
\item Insert additional space around \code{&} in function interface (PR
\ghpr{400} by Kazuki Fukui fixing \ghit{278}).
}
\item Changes in Rcpp Modules:
\itemize{
\item The copy constructor now initialized the base class (PR \ghpr{411}
by Joshua Pritikin fixing \ghit{410})
}
\item Changes in Rcpp Repository:
\itemize{
\item Added a file \code{Contributing.md} providing some points to
potential contributors (PR \ghpr{414} closing issue \ghit{413})
}
}
}
\section{Changes in Rcpp version 0.12.2 (2015-11-14)}{
\itemize{
\item Changes in Rcpp API:
\itemize{
\item Correct return type in product of matrix dimensions (PR \ghpr{374}
by Florian)
\item Before creating a single String object from a \code{SEXP}, ensure
that it is from a vector of length one (PR \ghpr{376} by Dirk, fixing
\ghit{375}).
\item No longer use \code{STRING_ELT} as a left-hand side, thanks to a
heads-up by Luke Tierney (PR \ghpr{378} by Dirk, fixing \ghit{377}).
\item Rcpp Module objects are now checked more carefully (PR \ghpr{381}
by Tianqi, fixing \ghit{380})
\item An overflow in Matrix column indexing was corrected (PR \ghpr{390}
by Qiang, fixing a bug reported by Allessandro on the list)
\item \code{Nullable} types can now be assigned \code{R_NilValue} in
function signatures. (PR \ghpr{395} by Dan, fixing issue \ghit{394})
\item \code{operator<<()} now always shows decimal points (PR \ghpr{396}
by Dan)
\item Matrix classes now have a \code{transpose()} function (PR \ghpr{397}
by Dirk fixing \ghit{383})
\item \code{operator<<()} for complex types was added (PRs \ghpr{398} by
Qiang and \ghpr{399} by Dirk, fixing \ghit{187})
}
\item Changes in Rcpp Attributes:
\itemize{
\item Enable export of C++ interface for functions that return void.
}
\item Changes in Rcpp Sugar:
\itemize{
\item Added new Sugar function \code{cummin()}, \code{cummax()},
\code{cumprod()} (PR \ghpr{389} by Nathan Russell fixing \ghit{388})
\item Enabled sugar math operations for subsets; e.g. x[y] + x[z].
(PR \ghpr{393} by Kevin and Qiang, implementing \ghit{392})
}
\item Changes in Rcpp Documentation:
\itemize{
\item The \code{NEWS} file now links to GitHub issue tickets and pull
requests.
\item The \code{Rcpp.bib} file with bibliographic references was updated.
}
}
}
\section{Changes in Rcpp version 0.12.1 (2015-09-10)}{
\itemize{
\item Changes in Rcpp API:
\itemize{
\item Correct use of WIN32 instead of _WIN32 to please Windows 10
\item Add an assignment operator to \code{DimNameProxy} (PR \ghpr{339} by Florian)
\item Add vector and matrix accessors \code{.at()} with bounds checking
(PR \ghpr{342} by Florian)
\item Correct character vector conversion from single char (PR \ghpr{344} by
Florian fixing issue \ghit{343})
\item Correct on use of \code{R_xlen_t} back to \code{size_t} (PR \ghpr{348} by
Romain)
\item Correct subsetting code to allow for single assignment (PR \ghpr{349} by
Florian)
\item Enable subset assignment on left and righ-hand side (PR \ghpr{353} by
Qiang, fixing issue \ghit{345})
\item Refreshed to included \code{tinyformat} template library (PR \ghpr{357} by
Dirk, issue \ghit{356})
\item Add \code{operator<<()} for vectors and matrices (PR \ghpr{361} by Dan
fixing issue \ghit{239})
\item Make \code{String} and \code{String_Proxy} objects comparable (PR
\ghpr{366} and PR \ghpr{372} by Dan, fixing issue \ghit{191})
\item Add a new class \code{Nullable} for objects which may be \code{NULL}
(PR \ghpr{368} by Dirk and Dan, fixing issue \ghit{363})
\item Correct creation and access of large matrices (PR \ghpr{370} by Florian,
fixing issue \ghit{369})
}
\item Changes in Rcpp Attributes:
\itemize{
\item Correctly reset directory in case of no-rebuilding but Windows code
(PR \ghpr{335} by Dirk)
}
\item Changes in Rcpp Modules:
\itemize{
\item We no longer define multiple Modules objects named \code{World} in
the unit tests with was seen to have a bad effect with R 3.2.2 or later
(PR \ghpr{351} by Dirk fixing issue \ghit{350}).
\item Applied patch by Kurt Hornik which improves how Rcpp loads Modules
(PR \ghpr{353} by Dirk)
}
\item Changes in Rcpp Documentation:
\itemize{
\item The \code{Rcpp.bib} file with bibliographic references was updated.
}
}
}
\section{Changes in Rcpp version 0.12.0 (2015-07-24)}{
\itemize{
\item Changes in Rcpp API:
\itemize{
\item \code{Rcpp_eval()} no longer uses \code{R_ToplevelExec} when evaluating
R expressions; this should resolve errors where calling handlers (e.g.
through \code{suppressMessages()}) were not properly respected.
\item All internal length variables have been changed from \code{R_len_t}
to \code{R_xlen_t} to support vectors longer than 2^31-1 elements (via
PR \ghpr{303} by Qiang Kou).
\item The sugar function \code{sapply} now supports lambda functions
(addressing \ghit{213} thanks to Matt Dziubinski)
\item The \code{var} sugar function now uses a more robust two-pass
method, supports complex numbers, with new unit tests added (via PR
\ghpr{320} by Matt Dziubinski)
\item \code{String} constructors now allow encodings (via PR \ghpr{310}
by Qiang Kou)
\item \code{String} objects are preserving the underlying \code{SEXP}
objects better, and are more careful about initializations (via PRs
\ghpr{322} and \ghpr{329} by Qiang Kou)
\item DataFrame constructors are now a little more careful (via PR
\ghpr{301} by Romain Francois)
\item For R 3.2.0 or newer, \code{Rf_installChar()} is used instead of
\code{Rf_install(CHAR())} (via PR \ghpr{332}).
}
\item Changes in Rcpp Attributes:
\itemize{
\item Use more robust method of ensuring unique paths for generated shared
libraries.
\item The \code{evalCpp} function now also supports the \code{plugins}
argument.
\item Correctly handle signature termination characters ('\{' or ';') contained
in quotes.
}
\item Changes in Rcpp Documentation:
\itemize{
\item The \code{Rcpp-FAQ} vignette was once again updated with respect to
OS X issues and Fortran libraries needed for e.g. \CRANpkg{RcppArmadillo}.
\item The included \code{Rcpp.bib} bibtex file (which is also used by
other Rcpp* packages) was updated with respect to its CRAN references.
}
}
}
\section{Changes in Rcpp version 0.11.6 (2015-05-01)}{
\itemize{
\item Changes in Rcpp API:
\itemize{
\item The unwinding of exceptions was refined to protect against inadvertent
memory leaks.
\item Header files now try even harder not to let macro definitions leak.
\item Matrices have a new default constructor for zero-by-zero dimension
matrices (via a pull request by Dmitrii Meleshko).
\item A new \code{empty()} string constructor was added (via another pull
request).
\item Better support for Vectors with a storage policy different from the
default, i.e. \code{NoProtectStorage}, was added.
}
\item Changes in Rcpp Attributes:
\itemize{
\item Rtools 3.3 is now supported.
}
}
}
\section{Changes in Rcpp version 0.11.5 (2015-03-04)}{
\itemize{
\item Changes in Rcpp API:
\itemize{
\item An error handler for tinyformat was defined to prevent the \code{assert()}
macro from spilling.
\item The \code{Rcpp::warning} function was added as a wrapper for \code{Rf_warning}.
\item The \code{XPtr} class was extended with new \code{checked_get}
and \code{release} functions as well as improved behavior (throw an
exception rather than crash) when a NULL external pointer is dereferenced.
\item R code is evaluated within an \code{R_toplevelExec} block to prevent
user interrupts from bypassing C++ destructors on the stack.
\item The \code{Rcpp::Environment} constructor can now use a supplied
parent environment.
\item The \code{Rcpp::Function} constructor can now use a supplied
environment or namespace.
\item The \code{attributes_hidden} macro from R is used to shield internal
functions; the \code{R_ext/Visibility.h} header is now included as well.
\item A \code{Rcpp::print} function was added as a wrapper around \code{Rf_PrintValue}.
}
\item Changes in Rcpp Attributes:
\itemize{
\item The \code{pkg_types.h} file is now included in \code{RcppExports.cpp}
if it is present in either the \code{inst/include} or \code{src}.
\item \code{sourceCpp} was modified to allow includes of local files
(e.g. \code{#include "foo.hpp"}). Implementation files (*.cc; *.cpp) corresponding
to local includes are also automatically built if they exist.
\item The generated attributes code was simplified with respect to
\code{RNGScope} and now uses \code{RObject} and its destructor rather than \code{SEXP}
protect/unprotect.
\item Support addition of the \code{rng} parameter in \code{Rcpp::export}
to suppress the otherwise automatic inclusion of \code{RNGScope} in
generated code.
\item Attributes code was made more robust and can e.g. no longer recurse.
\item Version 3.2 of the Rtools is now correctly detected as well.
\item Allow 'R' to come immediately after '***' for defining embedded R
code chunks in sourceCpp.
\item The attributes vignette has been updated with documentation
on new features added over the past several releases.
}
\item Changes in Rcpp tests:
\itemize{
\item On Travis CI, all build dependencies are installed as binary
\code{.deb} packages resulting in faster tests.
}
}
}
\section{Changes in Rcpp version 0.11.4 (2015-01-20)}{
\itemize{
\item Changes in Rcpp API:
\itemize{
\item The \code{ListOf<T>} class gains the \code{.attr} and
\code{.names} methods common to other Rcpp vectors.
\item The \code{[dpq]nbinom_mu()} scalar functions are now available via
the \code{R::} namespace when R 3.1.2 or newer is used.
\item Add an additional test for AIX before attempting to include \code{execinfo.h}.
\item \code{Rcpp::stop} now supports improved \code{printf}-like syntax
using the small tinyformat header-only library (following a similar
implementation in Rcpp11)
\item Pairlist objects are now protected via an additional \code{Shield<>}
as suggested by Martin Morgan on the rcpp-devel list.
\item Sorting is now prohibited at compile time for objects of type
\code{List}, \code{RawVector} and \code{ExpressionVector}.
\item Vectors now have a \code{Vector::const\_iterator} that is 'const correct'
thanks to fix by Romain following a bug report in rcpp-devel by Martyn Plummer.
\item The \code{mean()} sugar function now uses a more robust two-pass
method, and new unit tests for \code{mean()} were added at the same time.
\item The \code{mean()} and \code{var()} functions now support all core
vector types.
\item The \code{setequal()} sugar function has been corrected via
suggestion by Qiang Kou following a bug report by Søren Højsgaard.
\item The macros \code{major}, \code{minor}, and \code{makedev} no longer leak
in from the (Linux) system header \code{sys/sysmacros.h}.
\item The \code{push_front()} string function was corrected.
}
\item Changes in Rcpp Attributes:
\itemize{
\item Only look for plugins in the package's namespace
(rather than entire search path).
\item Also scan header files for definitions of functions to be considerd
by Attributes.
\item Correct the regular expression for source files which are scanned.
}
\item Changes in Rcpp unit tests
\itemize{
\item Added a new binary test which will load a pre-built package to
ensure that the Application Binary Interface (ABI) did not change; this
test will (mostly or) only run at Travis where we have reasonable control
over the platform running the test and can provide a binary.
\item New unit tests for sugar functions \code{mean}, \code{setequal} and
\code{var} were added as noted above.
}
\item Changes in Rcpp Examples:
\itemize{
\item For the (old) examples \code{ConvolveBenchmarks} and \code{OpenMP},
the respective \code{Makefile} was renamed to \code{GNUmakefile} to please
\code{R CMD check} as well as the CRAN Maintainers.
}
}
}
\section{Changes in Rcpp version 0.11.3 (2014-09-27)}{
\itemize{
\item Changes in Rcpp API:
\itemize{
\item The deprecation of \code{RCPP_FUNCTION_*} which was announced with
release 0.10.5 last year is proceeding as planned, and the file
\code{macros/preprocessor_generated.h} has been removed.
\item \code{Timer} no longer records time between steps, but times from
the origin. It also gains a \code{get_timers(int)} methods that
creates a vector of \code{Timer} that have the same origin. This is modelled
on the \code{Rcpp11} implementation and is more useful for situations where
we use timers in several threads. \code{Timer} also gains a constructor
taking a \code{nanotime_t} to use as its origin, and a \code{origin} method.
This can be useful for situations where the number of threads is not known
in advance but we still want to track what goes on in each thread.
\item A cast to \code{bool} was removed in the vector proxy code as
inconsistent behaviour between clang and g++ compilations was noticed.
\item A missing \code{update(SEXP)} method was added thanks to pull
request by Omar Andres Zapata Mesa.
\item A proxy for \code{DimNames} was added.
\item A \code{no_init} option was added for Matrices and Vectors.
\item The \code{InternalFunction} class was updated to work with
\code{std::function} (provided a suitable C++11 compiler is available)
via a pull request by Christian Authmann.
\item A \code{new_env()} function was added to \code{Environment.h}
\item The return value of range eraser for Vectors was fixed in a pull
request by Yixuan Qiu.
}
\item Changes in Rcpp Sugar:
\itemize{
\item In \code{ifelse()}, the returned \code{NA} type was corrected for
\code{operator[]}.
}
\item Changes in Rcpp Attributes:
\itemize{
\item Include LinkingTo in DESCRIPTION fields scanned to confirm that
C++ dependencies are referenced by package.
\item Add \code{dryRun} parameter to \code{sourceCpp}.
\item Corrected issue with relative path and R chunk use for \code{sourceCpp}.
}
\item Changes in Rcpp Documentation:
\itemize{
\item The \code{Rcpp-FAQ} vignette was updated with respect to OS X issues.
\item A new entry in the \code{Rcpp-FAQ} clarifies the use of licenses.
\item Vignettes build results no longer copied to \code{/tmp} to please CRAN.
\item The Description in \code{DESCRIPTION} has been shortened.
}
\item Changes in Rcpp support functions:
\itemize{
\item The \code{Rcpp.package.skeleton()} function will now use
\CRANpkg{pkgKitten} package, if available, to create a package which passes
\code{R CMD check} without warnings. A new \code{Suggests:} has been added
for \CRANpkg{pkgKitten}.
\item The \code{modules=TRUE} case for \code{Rcpp.package.skeleton()} has
been improved and now runs without complaints from \code{R CMD check} as well.
}
\item Changes in Rcpp unit test functions:
\itemize{
\item Functions from the \CRANpkg{RUnit} package are now prefixed with \code{RUnit::}
\item The \code{testRcppModule} and \code{testRcppClass} sample packages
now pass \code{R CMD check --as-cran} cleanly with NOTES or WARNINGS
}
}
}
\section{Changes in Rcpp version 0.11.2 (2014-06-06)}{
\itemize{
\item Changes in Rcpp API:
\itemize{
\item Implicit conversions, e.g. between \code{NumericVector} and
\code{IntegerVector}, will now give warnings if you use
\code{\#define RCPP_WARN_ON_COERCE} before including the Rcpp
headers.
\item Templated \code{List} containers, \code{ListOf<T>}, have been
introduced. When subsetting such containers, the return is assumed
to be of type T, allowing code such as
\code{ListOf<NumericVector> x; NumericVector y = x[0] + x[1] + x[2]}.
\item In a number of instances, returned results are protected and/or cast
more carefully.
}
\item Changes in Rcpp Attributes
\itemize{
\item Trailing line comments are now stripped by the attributes
parser. This allows the parser to handle C++ source files
containing comments inline with function arguments.
\item The \code{USE_CXX1X} environment variable is now defined by
the cpp11 plugin when R >= 3.1. Two additional plugins have been
added for use with C++0x (eg when using g++ 4.6.* as on Windows)
as well as C++1y for compilers beginning to support the next
revision of the standard; additional fallback is provided for
Windows.
\item \code{compileAttributes()} now also considers Imports: which
may suppress a warning when running \code{Rcpp.package.skeleton()}.
}
}
}
\section{Changes in Rcpp version 0.11.1 (2014-03-13)}{
\itemize{
\item Changes in Rcpp API:
\itemize{
\item Preserve backwards compatibility with \CRANpkg{Rcpp} 0.10.* by
allowing \code{RObject} extraction from vectors (or lists) of Rcpp
objects
\item Add missing default constructor to Reference class that was
omitted in the header-only rewrite
\item Fixes for \code{NA} and \code{NaN} handling of the
\code{IndexHash} class, as well as the vector \code{.sort()}
method. These fixes ensure that sugar functions depending on
\code{IndexHash} (i.e. \code{unique()}, \code{sort_unique()},
\code{match()}) will now properly handle \code{NA} and \code{NaN}
values for numeric vectors.
\item \code{DataFrame::nrows} now more accurately mimics R's
internal behavior (checks the row.names attribute)
\item Numerous changes to permit compilation on the Solaris OS
\item Rcpp vectors gain a subsetting method -- it is now possible
to subset an Rcpp vector using \code{CharacterVector}s (subset
by name), \code{LogicalVector}s (logical subsetting), and
\code{IntegerVector}s (0-based index subsetting). Such subsetting
will also work with Rcpp sugar expressions, enabling expressions
such as \code{x[ x > 0]}.
\item Comma initialization (e.g.
\code{CharacterVector x = "a", "b", "c";}, has been disabled, as
it causes problems with the behavior of the \code{=} operator with
\code{Rcpp::List}s. Users who want to re-enable this functionality
can use \code{#define RCPP_COMMA_INITIALIZATION}, but be aware of
the above caveat. The more verbose
\code{CharacterVector x = CharacterVector::create("a", "b", "c")}
is preferred.
}
\item Changes in Rcpp Attributes
\itemize{
\item Fix issue preventing packages with \code{Rcpp::interfaces}
attribute from compiling.
\item Fix behavior with attributes parsing of \code{::create} for default
arguments, and also allow constructors of a given size
(e.g. \code{NumericVector v = NumericVector(10))} gives a default
value of \code{numeric(10)} at the R level). Also make NAs preserve
type when exported to R (e.g. \code{NA_STRING} as a default argument
maps to \code{NA_character_} at the R level)
}
\item Changes in Rcpp modules
\itemize{
\item Corrected the \code{un_pointer} implementation for \code{object}
}
}
}
\section{Changes in Rcpp version 0.11.0 (2014-02-02)}{
\itemize{
\item Changes in Rcpp API:
\itemize{
\item Functions provided/used by \CRANpkg{Rcpp} are now registered
with R and instantiated by client package alleviating the new for
explicit linking against \code{libRcpp} which is therefore no
longer created.
\item Updated the \code{Rcpp.package.skeleton()} function accordingly.
\item New class \code{StretchyList} for pair lists with fast addition of
elements at the front and back. This abstracts the 3 functions
\code{NewList}, \code{GrowList} and \code{Insert} used in various
packages and in parsers in R.
\item The function \code{dnt}, \code{pnt}, \code{qnt} sugar
functions were incorrectly expanding to the no-degree-of-freedoms
variant.
\item Unit tests for \code{pnt} were added.
\item The sugar table function did not handle NAs and NaNs properly
for numeric vectors. Fixed and tests added.
\item The internal coercion mechanism mapping numerics to strings has
been updated to better match \R (specifically with \code{Inf}, \code{-Inf},
and \code{NaN}.)
\item Applied two bug fixes to Vector \code{sort()} and \code{RObject}
definition spotted and corrected by Kevin Ushey
\item New \code{checkUserInterrupt()} function that provides a C++ friendly
implementation of \code{R_CheckUserInterrupt}.
}
\item Changes in Rcpp attributes:
\itemize{
\item Embedded R code chunks in sourceCpp are now executed within
the working directory of the C++ source file.
\item Embedded R code chunks in sourceCpp can now be disabled.
}
\item Changes in Rcpp documentation:
\itemize{
\item The Rcpp-FAQ and Rcpp-package vignettes have been updated and expanded.
\item Vignettes are now typeset with grey background for code boxes.
\item The bibtex reference file has been update to reflexct
current package versions.
}
\item Changes in Rcpp unit tests:
\itemize{
\item The file \code{tests/doRUnit.R} was rewritten following the
pattern deployed in \CRANpkg{RProtoBuf} which is due to Murray Stokely
\item The function \code{test()} was rewritten; it provides an
easy entry point to running unit tests of the installed package
}
}
}
\section{Changes in Rcpp version 0.10.6 (2013-10-27)}{
\itemize{
\item Changes in Rcpp API:
\itemize{
\item The function \code{exposeClass} takes a description of the
constructors, fields and methods to be exposed from a C++
class, and writes C++ and R files in the package. Inherited
classes can be dealt with, but require data type information.
This approach avoids hand-coding module files.
\item Two missing \code{is<>()} templates for
\code{CharacterVector} and \code{CharacterMatrix} have been added,
and some tests for \code{is_na()} and \code{is_finite()} have been
corrected thanks to Thomas Tse.
}
\item Changes in R code:
\itemize{
\item Export linking helper function \code{LdFlags} as well as
\code{RcppLdFlags}.
\item Function \code{Rcpp.package.skeleton()} no longer passes a
\code{namespace} argument on to \code{package.skeleton()}
}
\item Changes in R setup:
\itemize{
\item Raise requirement for R itself to be version 3.0.0 or later
as needed by the vignette processing
}
\item Changes in Rcpp attributes:
\itemize{
\item \code{sourceCpp} now correctly binds to Rtools 3.0 and 3.1
}
}
}
\section{Changes in Rcpp version 0.10.5 (2013-09-28)}{
\itemize{
\item Changes in R code:
\itemize{
\item New R function \code{demangle} that calls the \code{DEMANGLE} macro.
\item New R function \code{sizeof} to query the byte size of a type. This
returns an object of S3 class \code{bytes} that has a \code{print} method
showing bytes and bits.
}
\item Changes in Rcpp API:
\itemize{
\item Add \code{defined(__sun)} to lists of operating systems to
test for when checking for lack of \code{backtrace()} needed for
stack traces.
\item \code{as<T*>}, \code{as<const T*>}, \code{as<T&>} and
\code{as<const T&>} are now supported, when