Bug 16511 - setInternet2 has invalid default
Summary: setInternet2 has invalid default
Alias: None
Product: R
Classification: Unclassified
Component: Windows GUI / Window specific (show other bugs)
Version: R-devel (trunk)
Hardware: Other Windows 64-bit
: P5 normal
Assignee: R-core
Depends on:
Reported: 2015-08-17 16:16 UTC by Jeroen
Modified: 2015-08-17 16:16 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Jeroen 2015-08-17 16:16:28 UTC
As of R > 3.2.2 `setInternet2` can only be called with `use = NA`, however the default is still `setInternet2(use = TRUE)`. This creates the strange situation where calling `setInternet2()` without any arguments raises an error, which breaks a lot of code.

I am not sure if this is intended; from the NEWS file it seems not:

 > Function \code{setInternet2()} has no effect and will be removed in due course. 

I think the sensible thing is to change the default to `setInternet2(use = NA)` such that calling `setInternet2()` indeed has no effect. Note that this does not actually change the semantics of the call. Because R on Windows always uses setInternet2 now, calling `setInternet2()` without arguments means the same thing as it did before when the default was TRUE.