From xie at yihui.name  Wed Jan 20 23:45:57 2016
From: xie at yihui.name (Yihui Xie)
Date: Wed, 20 Jan 2016 16:45:57 -0600
Subject: [Rd] Warn on partial matches in R CMD check
In-Reply-To: <CABdHhvEs4gX+MHFbeyF4jLnUyFM1hUMt0777d-UY524mpZ864Q@mail.gmail.com>
References: <CABdHhvEs4gX+MHFbeyF4jLnUyFM1hUMt0777d-UY524mpZ864Q@mail.gmail.com>
Message-ID: <CANROs4cE_HH512Tr6a7-=g_1KKWpsGMzbbS8dyP0qiFgj=Fuyw@mail.gmail.com>

+1 "What you write is **probably** what you get" sounds like a very
bad idea to me. The real solution to laziness should be
auto-completion instead of partial matching.

Regards,
Yihui


On Wed, Jan 20, 2016 at 4:13 PM, Hadley Wickham <h.wickham at gmail.com> wrote:
> Hi all (but especially Kurt),
>
> Would it be possible to have a flag to R CMD check that warned on
> partial all matches, i.e. turning on:
>
> options(
>   warnPartialMatchDollar = TRUE,
>   warnPartialMatchArgs = TRUE,
>   warnPartialMatchAttr = TRUE
> )
>
> I think this is good practice for package code.
>
> I don't think it can currently be made part of the default (because
> sometimes the warnings come from other packages), but it would be
> really convenient to have as a switch.
>
> Hadley
>
> --
> http://had.co.nz/
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel



[Rd] Warn on partial matches in R CMD check
Yihui Xie