[Rd] dput()

robin hankin h@nk|n@rob|n @end|ng |rom gm@||@com
Sat Feb 29 01:08:29 CET 2020

My interpretation of dput.Rd is that dput() gives an exact ASCII form
of the internal representation of an R object.  But:

 rhankin using cuttlefish:~ $ R --version
R version 3.6.2 (2019-12-12) -- "Dark and Stormy Night"
Copyright (C) 2019 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)


rhankin using cuttlefish:~ $ R --vanilla --quiet
> x <- sum(dbinom(0:20,20,0.35))
> dput(x)
> x-1
[1] -4.440892e-16
> x==1

So, dput(x) gives 1, but x is not equal to 1.  Can anyone advise?

More information about the R-devel mailing list