NEWS
gsubfn 0.7-0
gsubfn 0.6-7
- list[...] <- added for enabling multiple return values
gsubfn 0.6-6 (2014-08-27)
- bug fix. strapplyc failed with "R" engine.
- new read.pattern function
- vignettes have been moved to vignette directory to satisfy R 3.1,0
gsubfn 0.6-5 (2012-10-22)
- the Vignettes menu has been removed removing any dependence on Zelig.
gsubfn 0.6-4 (2012-08-01)
- in interactive Windows sessions under Rgui a Vignettes menu is created
(or added to if present) provided the Zelig package is available
- a scoping bug in fn$ was fixed
- gsubfn was attempting to access the tcltk package even if the
gsubfn.engine = "R" option was set. Fixed.
- changes to accommodate R-2.16: (i) a non-ascii character in the
gsubfn-si demo was removed (ii) rep on a pairlist is no longer
supported by R but used by fn$ so a workaround was implemented
- modified demos: (i) gsubfn-chron demo simplified based on latest
read.zoo, (ii) modified gsubfn-gries to use lipsum.txt (which was
added), (iii) mu in gsubfn-si changed to u so its all ASCII.
gsubfn 0.6-3 (2012-04-03)
- strapplyc could not find tcltk. Fixed.
- paste0 has been implemented in the base of R as of R 2.15.0 so it has
been removed from this version of sqldf.
gsubfn 0.6-2 (2012-03-28)
- package is now byte compiled hence depends on 2.14.0 or higher
- if tcltk can be loaded it is loaded at startup. If not, the gsubfn.engine
option is set to "R", a message is given and subsequent calls will use
slower R code instead of tcltk. Previously this check was done at run
time in the individual functions.
- strapplyc now calls strapply if gsubfn.engine = "R"
- now uses withVisible instead of internal function eval.with.vis. This
internal change was made to satisfy R 2.15.0 and should not affect users.
- added more unit tests
gsubfn 0.6
- strapplyc added, a fast tcl-only version of strapply specialized to FUN=c.
- bug fix. perl was ignored when engine = "tcl".
- unit test suite added. demo("gsubfn-unitTests") will run it.
- added NAMESPACE
gsubfn 0.5-6
- bug fix. backref argument was being interpreted incorrectly in "R" engine.
gsubfn 0.5-5 (2010-11-18)
- bug fix - engine option was not being interpreted correctly.
gsubfn 0.5-4
- strapply with engine = "tcl" (the default) now runs much faster on long
strings
gsubfn 0.5-3 (2010-06-13)
- new argument, empty, on strapply
- gsubfn now has an engine argument. This was already the case
with strapply.
- new global option "gsubfn.engine" whose value can be "tcl" or "R". It is
used as the default value for the gsubfn and strappy engine argument. If
the option is not set then gsubfn and strapply default to the "tcl"
regular expression engine if the current R installation has tcltk
capability and "R" otherwise.
- gsubfn pattern is no longer parenthesized internally if (1) engine = "tcl"
or if (2) engine = "R" and backref > 0. See the example of replacing
double characters in ?gsubfn .
- if the function in gsubfn or strapply has an '&' argument then backref
will be taken to be negative and the entire match passed through that arg.
- in as.function.formula if any of ..1 through ..9 are found as free
variables then ... is used as a trailng argument instead. If '&' is a
free variable then it is placed at the beginning of the argument list.
gsubfn 0.5-2 (2010-03-23)
gsubfn 0.5-1 (2010-03-16)
- fixes to pass R CMD CHECK
- package no longer depends on tcltk but it is still suggested. If R
installation does not have tcltk capability then strapply falls back
to R engine.
gsubfn 0.5-0 (2009-07-02)
- faster strapply based on tcl interface. engine argument can choose
between it and older version of strapply.
gsubfn 0.3-9
- removed some dead code. Thanks to Wacek Kusnierczyk.
gsubfn 0.3-8 (2008-12-15)
- minor improvements in gsubfn-package.Rd
- fixed bug in match.funfn
- heuristic to detect the number of back references (used when backref
is not specified) now uses -k where k is the number of non-escaped
left parens (whereas previously it used -k where k was the number of
left parens whether escaped or not).
gsubfn 0.3-7 (2008-10-16)
- R CMD CHECK fixes
- if replacement object is a list and match not found in that list then
no replacement is done
gsubfn 0.3-6
- bug fixes: fn$force("$x") failed if variable name was x as shown here
- bug fixes: f <- function() { aaa <- "X"; fn$cat("abc$aaa def\n") }; f()
failed.
- internals: eval.with.vis() replaced in $.fn. Now using withVisible().
This change requires R 2.5 or later.
- the replacement object in gsubfn can be a list as well
- the replacement object in strapply can be a character string or list
as well
- if backref= is omitted on gsubfn or strapply it passes the backreferences
if any (but not the entire match) or if there are no back references
it passes the entire match. Thus the default has changed in the case
that (1) there are one or more backreferences in the regular expression
and (2) backref was not specified. This should eliminate the need to
specify backref in most circumstances. Note that if there are no
backreferences in your regular expression or if backref= had been
specified there is no change thus in most cases there will be no change.
gsubfn 0.3-5
- fixed bug in demo index
- eliminated dependence on methods package (previously only
dependence was use of 'is')
gsubfn 0.3-4
gsubfn 0.3-3 (2006-10-28)
- changed quantreg example to reflect change in engel data set
gsubfn 0.3-2
- revised gsubfn-packages.Rd
- fn$ now performs quasi-perl style interpolation
- cati, cati0 removed since fn$cat and fn$cat0 can be used.
- rules for which formulas are translated and which character
strings are interpolated have been changed and simplified:
1. formulas specified with ~~ (double ~) are translated to functions
2. character strings beginning with \1 are translated to functions
3. if the above rules result in no translation/interpolation
then all formulas are translated if there are any formulas
or, if not, then all character strings are interpolated
In most cases rule #3 is used.
- fn$f now returns invisibly if f does (thanks to Duncan Murdoch
for eval.with.vis)
gsubfn 0.3-1 (2006-10-23)
- fixed initialization bug in strapply
- added proto examples to ?gsubfn and ?strapply
gsubfn 0.3-0
- gsubfn and strapply now can take proto arguments in addition
to character strings, functions and formulas
- vignette added
- home page abbreviated since most info already in vignette
gsubfn 0.2-3
- increased string lengths accepted by gsubfn by eliminating
use of the R parse() command. [Thanks to Stefan Th. Gries
for reporting problem.]
- fixed bug in one of the examples in example(gsubfn)
- strapply fixes
gsubfn 0.2-2 (2006-10-14)
- added combine= argument to strapply
- fixed bug associated with using double quotes in gsub (which
also could affect strapply and cati). [Thanks to Stefan Th.
Gries for reporting problem.]
gsubfn 0.2-1 (2006-10-10)
- added "note difference" example in strapply
- letters, LETTERS and pi excluded from args so
x ~ sin(x*pi/180) can be shortened to ~ sin(x*pi/180)
and
x ~ LETTERS[x] can be reduced to ~ LETTERS[x]
(previously it would have added pi and LETTERS to arg
lists in these two examples)
- improved as.function.formula.Rd
- fixes to eliminate R CMD CHECK warnings under R 2.5.0
- bug fix in $.fn. If args and match.call order was different
it could fail previously.
- new demos: gsubfn-gries.R, gsubfn-chron.R, gsubfn-si.R
- THANKS file
gsubfn 0.2-0 (2006-10-06)
- match.funfn
- as.function.formula improvements
- $.fn
- added numerous examples of $.fn to home page
gsubfn 0.1-5 (2006-10-01)
- reference to cat0 missing from gsubfn-package.Rd
- added digit separation example to strapply.Rd
- added config file example to strapply.Rd
- in strapply simplify= can be a function
- replacement= in gsubfn and strapply can be a formula
- new internal function as.function.formula
- new home page and svn repository (URL in DESCRIPTION file)
gsubfn 0.1-4 (2006-08-23)
- added cati, cati0, cat0 and paste0
- added USE.NAMES argument to gsubfn
- added gsubfn-cut demo
- added repx example to gsubfn.Rd
- added SI scale example to gsubfn.Rd
- perl=, etc. args were not being passed to gsub
- added moving window example to strapply.Rd
gsubfn 0.1-3 (2006-04-23)
- enhanced gsubfn backref= argument
- fixed bug in strapply
gsubfn 0.1-2 (2006-04-17)
- cati added
- updated DESCRIPTION and gsubfn-package.Rd
gsubfn 0.1-1 (2006-04-05)
- strapply added
- gsubfn-package.Rd added
gsubfn 0.1-0 (2006-03-26)