Import Debian changes 3.4.1-1
gtools (3.4.1-1) unstable; urgency=low
* New upstream release
Dirk Eddelbuettel
5 years ago
0 | 2014-05-28 warnes | |
1 | ||
2 | * [r1815] tests/smartbind_Dates.R: Add test to ensure smartbind() | |
3 | properly handles Date columns. | |
4 | * [r1814] R/smartbind.R: smartbind: Convert non-native type columns | |
5 | (except factor) to character. | |
6 | ||
7 | 2014-04-18 arnima | |
8 | ||
9 | * [r1813] R/ASCIIfy.R, man/ASCIIfy.Rd: Main arg is 'x' like | |
10 | showNonASCII(x), preformatted notes instead of verb | |
11 | ||
0 | 12 | 2014-04-17 warnes |
1 | 13 | |
14 | * [r1810] man/ASCIIfy.Rd: Update ASCIIfy man page to match source | |
15 | code and add keywords | |
16 | * [r1809] inst/NEWS: Update NEWS for gtools 3.4.0 | |
2 | 17 | * [r1808] DESCRIPTION, NAMESPACE, R/ASCIIfy.R, man/ASCIIfy.Rd: Add |
3 | 18 | ASCIIfy function posted to RDevel by Arni Magnusson |
4 | 19 |
0 | 0 | Package: gtools |
1 | 1 | Title: Various R programming tools |
2 | 2 | Description: Various R programming tools |
3 | Version: 3.4.0 | |
4 | Date: 2014-04-15 | |
3 | Version: 3.4.1 | |
4 | Date: 2014-05-27 | |
5 | 5 | Author: Gregory R. Warnes, Ben Bolker, and Thomas Lumley |
6 | 6 | Maintainer: Gregory R. Warnes <greg@warnes.net> |
7 | 7 | License: LGPL-2.1 |
8 | Packaged: 2014-04-17 17:35:30 UTC; warnes | |
8 | Packaged: 2014-05-28 00:24:58 UTC; warnes | |
9 | 9 | NeedsCompilation: yes |
10 | 10 | Repository: CRAN |
11 | Date/Publication: 2014-04-18 01:42:53 | |
11 | Date/Publication: 2014-05-28 09:52:04 |
0 | a671dd37fc365721275942aed975d7f9 *ChangeLog | |
1 | 38744921883b836dbfba56d0bbff8668 *DESCRIPTION | |
0 | d9acafea0ae89a962d136c4714fa6e88 *ChangeLog | |
1 | 3339377e32f1c247e472340e800d09dc *DESCRIPTION | |
2 | 2 | eaba4455ced37627eb4ad325c2038794 *NAMESPACE |
3 | b0106b6f2c8d042bb58f4399528ede0b *NEWS | |
4 | 174deee96772a2b017b9144766223109 *R/ASCIIfy.R | |
3 | a8644a8081da8428987ac599a8287f32 *NEWS | |
4 | 40be776640196133aebff67618b08dec *R/ASCIIfy.R | |
5 | 5 | 9eb418fd95aa09ba85aed159545dea61 *R/RSCompat.S |
6 | 6 | a86a74ba04089ad58ea22e3a994a9b14 *R/addLast.R |
7 | 7 | c4ae0d6b5867f6751981e9f93cd2f619 *R/ask.R |
27 | 27 | 02390191f23321a34fcfc41719d66dc6 *R/running.R |
28 | 28 | a5ea32bab219fd7c634f034dddada96b *R/scat.R |
29 | 29 | e5ddc84d8a502feed32f7f6b1b5e25ab *R/setTCPNoDelay.R |
30 | 3d0ac64f38d5b91d4ef8adc2344d5875 *R/smartbind.R | |
30 | f6c7ff23b703889d580383ea3e7205d8 *R/smartbind.R | |
31 | 31 | ef22fb4007dec9fb62eb5ed947292fa3 *R/stars.pval.R |
32 | 32 | e8f510e73bd2cd820c384c00d75b0080 *R/strmacro.R |
33 | 33 | d2d2d0444a049d74694203974624835c *data/ELISA.rda |
34 | a671dd37fc365721275942aed975d7f9 *inst/ChangeLog | |
35 | b0106b6f2c8d042bb58f4399528ede0b *inst/NEWS | |
36 | c8908e4db48abf721d73ca9fe210af0a *man/ASCIIfy.Rd | |
34 | d9acafea0ae89a962d136c4714fa6e88 *inst/ChangeLog | |
35 | a8644a8081da8428987ac599a8287f32 *inst/NEWS | |
36 | 05087d9c7f92db0ac048dec226e7bc3a *man/ASCIIfy.Rd | |
37 | 37 | 904304f52b08ec847904ac2aa5be9aef *man/ELISA.Rd |
38 | 38 | c5b7124f5fdbcc83f2e283314df95858 *man/ask.Rd |
39 | 39 | ecbe8481bdcff0d8abd1a47cc64ca7b2 *man/binsearch.Rd |
60 | 60 | 7ba286fa2b1bc994de1c6ec78883cdc8 *man/stars.pval.Rd |
61 | 61 | 8d4158b8eb92153e2d3f581682b2a3c1 *src/Makevars.win |
62 | 62 | bb28a3858ac5a6152565d3b8cef8c70c *src/setTCPNoDelay.c |
63 | 6c36d5eac8884ab13c200c1113cf9236 *tests/smartbind_Dates.R | |
63 | 64 | b859dff6a12425f4ba692dc7706e99ed *tests/test_binsearch.R |
64 | 65 | 33c5986481c62f046106b02abc4d0c74 *tests/test_mixedorder.R |
0 | gtools 3.4.1 - 2014-05-27 | |
1 | ------------------------- | |
2 | ||
3 | Bug fixes: | |
4 | ||
5 | - smartbind() now converts all non-atomic type columns (except factor) | |
6 | to type character instead of generating an opaque error message. | |
7 | ||
8 | Other changes: | |
9 | ||
10 | - the argument to ASCIIfy() is now named 'x' instead of 'string'. | |
11 | ||
12 | - minor formatting changes to ASCIIfy() man page. | |
13 | ||
0 | 14 | gtools 3.4.0 - 2014-04-14 |
1 | 15 | ------------------------- |
2 | 16 |
0 | ASCIIfy <- function(string, bytes=2, fallback="?") | |
0 | ASCIIfy <- function(x, bytes=2, fallback="?") | |
1 | 1 | { |
2 | 2 | bytes <- match.arg(as.character(bytes), 1:2) |
3 | 3 | convert <- function(char) # convert to ASCII, e.g. "z", "\xfe", or "\u00fe" |
22 | 22 | return(ascii) |
23 | 23 | } |
24 | 24 | |
25 | if(length(string) > 1) | |
25 | if(length(x) > 1) | |
26 | 26 | { |
27 | sapply(string, ASCIIfy, bytes=bytes, fallback=fallback, USE.NAMES=FALSE) | |
27 | sapply(x, ASCIIfy, bytes=bytes, fallback=fallback, USE.NAMES=FALSE) | |
28 | 28 | } |
29 | 29 | else |
30 | 30 | { |
31 | input <- unlist(strsplit(string,"")) # "c" "a" "f" "<\'e>" | |
31 | input <- unlist(strsplit(x,"")) # "c" "a" "f" "<\'e>" | |
32 | 32 | output <- character(length(input)) # "" "" "" "" |
33 | 33 | for(i in seq_along(input)) |
34 | 34 | output[i] <- convert(input[i]) # "c" "a" "f" "\\u00e9" |
62 | 62 | " End:", end, |
63 | 63 | " Column:", col, |
64 | 64 | "\n", sep="") |
65 | ||
65 | 66 | if ("factor" %in% classVec) |
66 | 67 | { |
67 | 68 | newclass <- "character" |
68 | 69 | } |
69 | 70 | else |
70 | newclass <- classVec | |
71 | newclass <- classVec[1] | |
72 | ||
73 | ## Coerce everything that isn't a native type to character | |
74 | if(! (newclass %in% c("logical", "integer", "numeric", | |
75 | "complex", "character", "raw") )) | |
76 | { | |
77 | newclass <- "character" | |
78 | warning("Converting non-atomic type column '", col, | |
79 | "' to type character.") | |
80 | } | |
71 | 81 | |
72 | 82 | retval[[col]] <- as.vector(rep(fill,nrows), mode=newclass) |
73 | 83 | } |
74 | 84 | |
75 | retval[[col]][start:end] <- as.vector(block[,col], | |
76 | mode=class(retval[[col]])) | |
85 | mode <- class(retval[[col]]) | |
86 | if(mode=="character") | |
87 | vals <- as.character(block[,col]) | |
88 | else | |
89 | vals <- block[,col] | |
90 | ||
91 | retval[[col]][start:end] <- as.vector(vals, mode=mode) | |
77 | 92 | } |
78 | 93 | start <- end+1 |
79 | 94 | blockIndex <- blockIndex+1 |
0 | gtools (3.4.1-1) unstable; urgency=low | |
1 | ||
2 | * New upstream release | |
3 | ||
4 | -- Dirk Eddelbuettel <edd@debian.org> Wed, 28 May 2014 22:07:23 -0500 | |
5 | ||
0 | 6 | gtools (3.4.0-1) unstable; urgency=low |
1 | 7 | |
2 | 8 | * New upstream release |
0 | 2014-05-28 warnes | |
1 | ||
2 | * [r1815] tests/smartbind_Dates.R: Add test to ensure smartbind() | |
3 | properly handles Date columns. | |
4 | * [r1814] R/smartbind.R: smartbind: Convert non-native type columns | |
5 | (except factor) to character. | |
6 | ||
7 | 2014-04-18 arnima | |
8 | ||
9 | * [r1813] R/ASCIIfy.R, man/ASCIIfy.Rd: Main arg is 'x' like | |
10 | showNonASCII(x), preformatted notes instead of verb | |
11 | ||
0 | 12 | 2014-04-17 warnes |
1 | 13 | |
14 | * [r1810] man/ASCIIfy.Rd: Update ASCIIfy man page to match source | |
15 | code and add keywords | |
16 | * [r1809] inst/NEWS: Update NEWS for gtools 3.4.0 | |
2 | 17 | * [r1808] DESCRIPTION, NAMESPACE, R/ASCIIfy.R, man/ASCIIfy.Rd: Add |
3 | 18 | ASCIIfy function posted to RDevel by Arni Magnusson |
4 | 19 |
0 | gtools 3.4.1 - 2014-05-27 | |
1 | ------------------------- | |
2 | ||
3 | Bug fixes: | |
4 | ||
5 | - smartbind() now converts all non-atomic type columns (except factor) | |
6 | to type character instead of generating an opaque error message. | |
7 | ||
8 | Other changes: | |
9 | ||
10 | - the argument to ASCIIfy() is now named 'x' instead of 'string'. | |
11 | ||
12 | - minor formatting changes to ASCIIfy() man page. | |
13 | ||
0 | 14 | gtools 3.4.0 - 2014-04-14 |
1 | 15 | ------------------------- |
2 | 16 |
5 | 5 | single-byte (\samp{\x00}) or two-byte (\samp{\u0000}) codes. |
6 | 6 | } |
7 | 7 | \usage{ |
8 | ASCIIfy(string, bytes = 2, fallback = "?") | |
8 | ASCIIfy(x, bytes = 2, fallback = "?") | |
9 | 9 | } |
10 | 10 | \arguments{ |
11 | \item{string}{a character vector, possibly containing non-ASCII | |
11 | \item{x}{a character vector, possibly containing non-ASCII | |
12 | 12 | characters.} |
13 | 13 | \item{bytes}{either \code{1} or \code{2}, for single-byte |
14 | 14 | (\samp{\x00}) or two-byte (\samp{\u0000}) codes.} |
22 | 22 | \author{Arni Magnusson \email{arnima@hafro.is}} |
23 | 23 | \note{ |
24 | 24 | To render single backslashes, use these or similar techniques: |
25 | \verb{ | |
25 | \preformatted{ | |
26 | 26 | write(ASCIIfy(x), "file.txt") |
27 | 27 | cat(paste(ASCIIfy(x), collapse="\n"), "\n", sep="")} |
28 | 28 |