-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathChanges.html
584 lines (455 loc) · 16 KB
/
Changes.html
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
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html> <head>
<title>Change History for RSPerl package</title>
</head>
<body>
<h1>Changes for Versions of the RSPerl Package</h1>
<h2>0.92-0</h2>
<dl>
<dt>
<li> Fixed compilation problem where the initRSession was not being
activated in the compilation because the relevant configuration
<dd>
<dt>
<li> Added a call to croak() in the Perl code initR to announce if the R in
Perl is not supported.
<dd>
</dl>
<h2>0.92-0</h2>
<dl>
<dt>
<li> Better support for determining location of R include files and
libraries during installation .
<dd>
<dt>
<li> Handle long error messages in RS_PerlEvalString() routine "more gracefully".
<dd>
<dt>
<li> Removed dangling comma in creating a list (with a call to .PerlStashInfo) that suggested
forthcoming argument and generated a warning when the package was loaded.
<dd>
<dt>
<li> RReference objects now have an AUTOLOAD method which allows
Perl users to make calls of the form
$ref->method(1, 2, 3)
which calls the R function method with $ref as the first
argument and 1, 2, 3 as the remaining arguments.
<dd>
<dt>
<li> Added getPerlDynModules() to return the names of the Perl modules
that can have C code that can be dynamically loaded into an R
session when Perl is embedded in R. These are specified during
the compilation of the package.
<dd>
</dl>
<h2>0.91-2</h2>
<dl>
<dt>
<li> Another bug when calling an anonymous R function from Perl passed as a
reference to Perl. Identified by Hong Ni.
<dd> Reference counting problem on the result from Perl's getName()
method for the RReference object.
</dl>
<h2>0.91-1</h2>
<dl>
<dt>
<li> Bug when calling an anonymous R function from Perl passed as a
reference to Perl. Identified by Hong Ni.
<dd> RPerl_getReferenceName() left the Perl stack in an unusual
state. See Rclosure.pl for the example.
</dl>
<h2>0.91-0</h2>
<dl>
<dt>
<li>Fix supplied by Michael Dondrup for R_callWithNames in R.xs to
avoid a stack imbalance issue in R when dealing with R
reference objects from Perl.
<dd>
<dt>
<li> .PerlInit() now has an additional argument loadModules which
can be used to load one or more Perl modules after the
Perl interpreter has been initialized.
<dd> You can avoid this by passing a value of FALSE.
<dt>
<li>.PerlPackage now
<ul>
<li> handles a vector of package names as the argument and
processes all of them one after another until one fails or
they all succeed;
<li> returns a simple S3-style object of class PerlPackage
which contains the name of the package and a reference to
its stash from which one can access the different code objects;
<li> avoids checking if the package exists first
which was sometimes incorrect,
</ul>
<dt>
<li>Added mkRef() function to create a Perl reference to a Perl object
converted from an R value. This is for use in methods in which
strict refs are in force, e.g. the NetAddr::IP::Find module.
<dd> See ipFind.R in tests/ for an example.
<dd>
<dt>
<li> .PerlGetStash() function added for getting the stash from a
reference to a code object, i.e. to get the containing module.
<dd>
<dt>
<li> perlModuleLoaded can determine whether a module has been loaded
in this session.
<dd> (This may not guarantee that it is still loaded!)
Unfortunately, it does not seem to provide any updated
information after the first time it was called, so it would
miss any modules that were loaded subsequent to the first call
to perlModuleLoaded.
<dt>
<li> If a reference to a package is made in a call to .Perl,
.PerlNew or .PerlStashInfo, it is automatically loaded, if possible.
<dd>
<dt>
<li> .PerlStashInfo() automatically uses .convert = FALSE for the
top-level, main module to avoid cyclic references.
<dd>
<dt>
<li> Perl's magic types are converted to R as a reference. It is
important to preserve the "magic" semantics for general use. Users can provide
special converters in the appropriate contexts.
<dd>
<dt>
<li> .PerlExists() works again.
<dd>
</dl>
<h2>0.9-0</h2>
<dl>
<dt>
<li> Added facility for specifying where the Perl module files
should be installed via the
<code>--with-perl-prefix=<dir></code>
and <code>--with-perl-lib=<dir></code> configuration
flags. The values should give the name of the directory which
is passed as the value of the PREFIX argument and LIB argument
respectively to
<code>perl Makefile.PL PREFIX= LIB=</code>.
If you want to use the standard Perl location, then use
<code> --with-perl-prefix=</code>, i.e. with no value specified
for the directory and omit the --with-perl-lib.
If you want specify the directory and use that one exactly as
the value in PERL5LIB, then use --with-perl-lib.
<p/>
The default is still to install the Perl files into
<br>
Note that the R installation process will attempt to perform the
installation of the Perl module files. If it does not have
permission to write to the relevant directories, it continues.
You must then go to the RSPerl/src/ directory in the source
package and give the command
<pre>
make -f Makefile.perl install
</pre>
having obtained the appropriate permissions, e.g., via sudo or
logging in as root or whatever.
<dd>
<dt>
<li> initR() in the Perl module now sets the value of R_HOME if it
is not already set in the environment variables of the process
and also loads the RSPerl package into R after starting the
session.
<dd>
initR() is now a regular subroutine and
initRSession() is the name of the native routine.
<dt>
<li> Set PERL5LIB in R function .PerlInit() if PERL5LIB and PERLIB
are not already set in the process' environment variables.
<dd> Function setPerlLib() is available to set this explicitly if
you need it. And getPerl5LibValue() returns the value of the
PERL5LIB setting determined at installation time.
<dt>
<li> Non-trivial update to the RFromPerl document (now in HTML from XML).
<dd>
<dt>
<li> Restored the old (0.8-0 and earlier) behaviour of converting
references to Perl arrays and hashes as regular R vectors or lists.
<dd> When conversion is not requested, e.g. with <code>convert =
FALSE</code> in an R function call, the class of the resulting
Perl reference is computed correctly.
<dt>
<li> When converting a Perl array (or hash) with a mixture of
integers and reals (IV and NV in Perl types), the converter
recognizes this and creates a numeric vector.
<dd> Added test for this scenario in isHomogeneous.
<dt>
<li> .PerlExpr() now does not terminate via a call to exit
when there is an error in the Perl command.
<dd>
This changes the third argument to Perl_eval_pv which is
croak_on_error. A value of 0 avoids the error.
We may use the approach of overriding CORE::exit as in mod_perl
also.
<dt>
<li> The opaque data types that are used to represent references to
Perl objects as regular R values now use external pointers in
R.
This will continue to undergoe change to clean this up and
remove the R code that treats the object as a list.
<dd>
<dt>
<li> Removed tryEval.c and all references to tryEval().
<dd>
</dl>
<h2>0.8-2</h2>
<dl>
<dt>
<li> Modified tryEval.c to be a simple call to R_tryEval(). This avoids the problem of
R_ToplevelExec not being an exported symbol unders some compilers.
<dd>
</dl>
<h2>0.8-1</h2>
<dl>
<dt> names() for a PerlHashReference object now gives back the keys
in the underlying Perl hash table.
<dd>
<dt>
<li> .PerlExpr() takes a convert argument which can be NULL to
supress the return value.
<dd>
<dt>
<li> Use [[ for accessing elements in a PerlHashReference or
PerlArrayReference, rather than the [ operator.
<dd> The latter will be modified in subesquent releases to have
different semantics.
<dt>
<li> Added convert argument for [[ operator for arrays and hash tables.
<dd>
<dt>
<li> Caught a general case where the class of the Perl reference was not
being computed correctly.
<dd>
</dl>
<h2>0.8-0</h2>
<dl>
<dt>
<li> The PERL5LIB needed to find the R.pm and RReferences.pm modules
is now simpler: a single element <code><r package install dir>share/lib/perl5/site_perl/</code>.
<dt> You can still use the shell scripts in scripts/RSPerl.* to set
the relevant variables.
<dt>
<li> If --with-in-perl is specified in the configure-args for the
<code>R CMD INSTALL</code> command, by default, support for Perl modules
with C code are not compiled into the R interface. This is
typically not a problem as people usually just call R from Perl.
If you need bi-directional interaction, e.g. with callbacks,
that require
<dd>
<dt>
<li> Patch from Stefan Evert for OS X so that we the Perl module can
locate the libPerlConverter.dylib file without needing to
explicitly set the DYLD_LIBRARY_PATH to find libPerlConverter.*
<dd> You can still use the shell scripts in scripts/RSPerl.* to set
the relevant variables.
<dt>
<li> Fixed trivial but significant error in converting homogeneous
arrays with references.
<dd> Identified by Jan Hummel. See nestedArrays.pl in the examples/
directory.
<dt>
<li> Added facilities to specify a converter pair (predicate and
converter routines) from Perl to convert from Perl to R.
<dd> Previously, this was feasible but not implemented.
</dl>
<h2>0.7-0</h2>
<dl>
<dt>
<li> Added an AUTOLOAD routine for R in Perl.
<dd> This allows users to call R functions using the syntax
<code>R::sum(</code>, <code>R::plot()</code>, etc.
rather than <code>R::call("sum")</code>.
<br>
This does not work for callWithNames(), at this point.
</dl>
<h2>0.6-5</h2>
<dl>
<dt>
<li> Fix to the regular expression in the NAMESPACE file.
<dd>
</dl>
<h2>0.6-4</h2>
<dl>
<dt> Altered the exportPattern() to explicilty export the functions
we want.
<dd>
<dt> Support for Mac OS X for running R within Perl.
<dd>
<ul>
<li> Create libPerlConverter as a dylib, and the others as bundles.
<li> Use DYLD_LIBRARY_PATH in the RSperl.{csh,bsh} scripts to
set the environment variables appropriately.
</ul>
<dt> Location of libR.so now points to lib in Makefile.PL.
<dd>
<dt> .onLoad() initializes the Perl interpreter.
<dd> (Not certain this is a good idea, but it is backward compatible
with earlier versions.)
<dt> An undef in Perl was being returned as a reference to a strange
object. Fixed now.
<dd>
<dt> Collapsing Perl arrays into vectors when possible
(i.e. homogeneous types) in returning a value from Perl
in .Perl() is now working better.
<dd>
<dt> .PerlFile now checks for the existence of the file and
expands the path name, so ~ is expanded.
<dd>
<dt> Test that the Perl interpreter has been started before
evaluating a Perl expression, etc. that uses it. This avoids
silly segfaults.
<dd>
<dt> RPerlDebug in R.xs is now set to off.
<dd>
</dl>
<h2>0.6-3</h2>
<dl>
<dt>
Handle undefined values in callWithNames
<dd> Reported by Michael Dondrup with the example
<code>R::callWithNames(foo, {'x'=>undef});</code>
</dl>
<h2>0.6-2</h2>
<dl>
<dt> PDF now not empty files.
<dd>
</dl>
<h2>0.6-1</h2>
<dl>
<dt>
<li> Patch from Eric Jensen (Information Retrieval Lab at Illinois
Institute of Technology) for testing homegeneity of a Perl
collection.
<dd>
<dt>
<li> Fixed R::callWithNames() thanks to a bug report
from Eric!
<dd>
<dt>
<li> Cleanup for R CMD check.
<dd>
<dl>
<dt>
<li> NAMESPACE added
<dd> Everything exported.
<dt>
<li> T and F instances changed to TRUE and FALSE.
<dd>
<dt>
<li> Documentation enhancements and corrections.
<dd>
</dl>
</dl>
<h2>0.6-0</h2>
<dl>
<dt> Added a .args argument to .Perl to allow the caller to specify
the
actual argument list.
<dd>
This allows the caller to deal directly with the Perl stack a little more easily.
<dt> Changed the modules.pl script used in the configuration to use
information from the Config module (Config.pm).
<dd>
<dt> Setting <i>PERL_MODULES</i> to <b>no</b> forces no modules to be loaded.
<dd> This is the same as the command line arguments
to the <code>R CMD INSTALL</code> command with
the arguments --configure-args='-with-modules=no'.
<dt> Generate our own xs_init if no Perl modules are used
(i.e. including R within Perl).
<dd>
<dt> Switched environment variable to PERL5LIB (from PERLLIB) in scripts.
<dd>
</dl>
<h2>0.5-6</h2>
<dl>
<dt> --without-modules now works.
<dd> Thanks to Chris Handorf for pointing out the error that caused
boot_no to be referenced.
</dl>
<h2>0.5-5</h2>
<dl>
<dt> Test if dTHX is defined and if not provide a pre-processor
definition for it.
<dd> Needed for earlier versions of Perl.
</dl>
<h2>0.5-4</h2>
<dl>
<dt> Configuration corrections for including all converter
code in the libPerlConverter.so
<dd>
<dt> Error message about unhandled types in array conversion
gives the index of the element.
<dd>
</dl>
<h2>0.5-3</h2>
<dl>
<dt> Reset the error stack when we cannot find a routine
in R_PerlCallModified.
<dd>
</dl>
<h2>0.5-2</h2>
<dl>
<dt>
<li> Support for compiling with a threaded installation of Perl.
<dd> Manifesting itself as compilation errors about missing
variable <code>my_perl</code>. Pointed out by Steffen Neumann.
</dl>
<h2>0.5-1</h2>
<dl>
<dt> Removed the deprecated perl_ prefix from the Perl
API routines. Hopefully this will help compilation
on systems which currently fail.
<dd>
</dl>
<h2>0.5-0</h2>
<dl>
<dt> User-level converters
<dd> See <code>setConverter</code> in Perl and
<code>addConverter()</code> in R.
<dt> Garbage collection of the RReferences in Perl.
<dd>
<dt> Check for primitives when converting from R to Perl
includes objects with a dimension and/or class attribute.
<dd>
</dl>
<h2>0.4-0</h2>
<dl>
<dt> Perl calls which do not "use" the return value
avoid conversion of the resulting R object.
<dd> This is checks the GIMME_V value to look for a G_VOID context.
<dt> Subsetting a Perl array or hashtable with the <code>[</code>
operator now returns a single value when just one index
is used in specifying the subset. This contrasts with returning
a list with a single element.
<dd>
<dt> Handling of NULLs correctly added to different routines.
<dd>
<dt> Array and hash subsetting works for references also.
<dd> In particular, this works for (blessed) objects of these types.
<dt> Can pass a reference to an R function as the argument to R::call()
<dd>
<dt> Passing rferences from R to Perl works properly now.
<dd>
<dt> Report name of the Perl sub-routine being called when an error occurs.
<dd>
<dt> Added RFunctionReferences and RNamedFunctionReferences to
RReferences module. And extended conversion to export R
functions using the former.
Overloading of the invocation mechanism to allow
<pre>
$fun = RNamedFunctionReference->new("foo");
$f->(arg1, arg2,...);
</pre>
<dd>
<dt> Can call R from Perl running within an R session, i.e Perl
callbacks to R, for full bi-directional interface.
<dd>
</dl>
<hr>
<address></address>
<!-- hhmts start -->
Last modified: Thu Aug 2 06:23:22 PDT 2007
<!-- hhmts end -->
</body> </html>