From mikko@korpel@ @ending from m@@nmitt@u@l@ito@@fi  Sat Sep 29 08:49:25 2018
From: mikko@korpel@ @ending from m@@nmitt@u@l@ito@@fi (Korpela Mikko (MML))
Date: Sat, 29 Sep 2018 06:49:25 +0000
Subject: [Rd] Improvement to documentation in dput.Rd
Message-ID: <3e8ce8c001334129991999e5f68aa332@C119S212VM016.msvyvi.vaha.local>

If the "Matrix" package is attached, 'example(dget)' fails:

  > library(Matrix)
  > example(dget)
  
  dget> fil <- tempfile()
  
  dget> ## Write an ASCII version of function mean to our temp file
  dget> dput(mean, fil)

  dget> ## And read it back into 'bar'
  dget> bar <- dget(fil)
  Error in initialize(value, ...) : '...' used in an incorrect context

A possible fix would be to use 'dput(base::mean, fil)' instead of
'dput(mean, fil)' in src/library/base/man/dput.Rd .

-- 
Mikko Korpela



[Rd] Improvement to documentation in dput.Rd
Korpela Mikko (MML