search for: keepinteger

Displaying 6 results from an estimated 6 matches for "keepinteger".

2023 May 06
1
Change DEFAULTDEPARSE to DEFAULTDEPARSE | SHOWATTRIBUTES ?
The deparse options used by default by 'deparse' and 'dput' are c("keepNA", "keepInteger", "niceNames", "showAttributes") but Defn.h still has #define DEFAULTDEPARSE 1089 /* KEEPINTEGER | KEEPNA | NICE_NAMES, used for calls */ i.e., with the SHOWATTRIBUTES bit turned off. Is that on purpose? Note that this leads to weird things like: > (expr...
2018 Mar 30
0
Nice names in deparse
...l r73778, with x <- 0; names(x) <- "recursive"? , dput(x) or even dput(x, control = "all") gives c(recursive = 0) However, actual result of c(recursive = 0) is NULL. Also with x <- 0; names(x) <- "recursive"? , dput(x, control = c("keepNA", "keepInteger", "showAttributes")) in R devel r73778 gives structure(c(0), .Names = "recursive") The 'control' is suggested by an example for output as in R < 3.5.0. However, the output is slightly different from dput(x) in R 3.3.2: structure(0, .Names = "recursive")...
2016 Sep 25
0
withAutoprint({ .... }) ?
...e/R/source.R (working copy) @@ -198,7 +198,7 @@ if (!tail) { # Deparse. Must drop "expression(...)" dep <- substr(paste(deparse(ei, width.cutoff = width.cutoff, - control = "showAttributes"), + control = c("keepInteger", "showAttributes")), collapse = "\n"), 12L, 1e+06L) dep <- paste0(prompt.echo, gsub("\n", paste0("\n", continue.echo), dep)) such that you get: > withAutoprint(x <- c(1L, NA_integer_, NA)) > x <- c(1L, NA_integer_, NA) becaus...
2016 Sep 25
3
withAutoprint({ .... }) ?
>>>>> Henrik Bengtsson <henrik.bengtsson at gmail.com> >>>>> on Sat, 24 Sep 2016 11:31:49 -0700 writes: > Martin, did you post your code for withAutoprint() anywhere? > Building withAutoprint() on top of source() definitely makes sense, > unless, as Bill says, source() itself could provide the same feature. I was really mainly asking
2007 Apr 24
0
R 2.5.0 is released
...eepNA" to ensure that different types (logical, integer, double, character and complex) of NAs are distinguished, and "S_compatible" to suppress the use of R-specific features such as 123L and to deparse integer values of a double vector with a trailing decimal point. The 'keepInteger' option now uses the suffix 'L' rather than as.integer() where possible (unless all entries are NA or "S_compatible" is also set). Other deparse options can now be added to "all" (which has not for some time actually switched on all options). Integer sequences...
2007 Apr 24
0
R 2.5.0 is released
...eepNA" to ensure that different types (logical, integer, double, character and complex) of NAs are distinguished, and "S_compatible" to suppress the use of R-specific features such as 123L and to deparse integer values of a double vector with a trailing decimal point. The 'keepInteger' option now uses the suffix 'L' rather than as.integer() where possible (unless all entries are NA or "S_compatible" is also set). Other deparse options can now be added to "all" (which has not for some time actually switched on all options). Integer sequences...