Bug 17427 - Wrong dput(x, control = "all") with x <- 0; names(x) <- "recursive"
Summary: Wrong dput(x, control = "all") with x <- 0; names(x) <- "recursive"
Alias: None
Product: R
Classification: Unclassified
Component: Language (show other bugs)
Version: R 3.5.0
Hardware: All All
: P5 minor
Assignee: R-core
URL: https://stat.ethz.ch/pipermail/r-deve...
Depends on:
Reported: 2018-05-20 07:44 UTC by Suharto Anggono
Modified: 2018-05-22 21:18 UTC (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Suharto Anggono 2018-05-20 07:44:34 UTC
From https://stat.ethz.ch/pipermail/r-devel/2017-December/075233.html :

Tags (argument names) in call to 'list' becomes names of the result. It is not necessarily so with call to 'c'. The default method of 'c' has 'recursive' and 'use.names' arguments.

In R devel r73778, with
x <- 0; names(x) <- "recursive"  ,
or even
dput(x, control = "all")
c(recursive = 0)
However, actual result of c(recursive = 0) is NULL.

In R 3.5.0, 'dput' still behaves like that.
Comment 1 Martin Maechler 2018-05-22 21:18:07 UTC
Thank you!

Now fixed in R-devel  (svn c74756).   Plan to port to R 3.5.0 patched