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 Ooms
Modified: 2018-02-09 10:32 UTC (History)
2 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Jeroen Ooms 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.
Comment 1 Benjamin Tyner 2018-02-09 01:01:19 UTC
This can be closed, as setInternet2 is defunct as of R version 3.4.0
Comment 2 Martin Maechler 2018-02-09 10:32:57 UTC
(In reply to Benjamin Tyner from comment #1)
> This can be closed, as setInternet2 is defunct as of R version 3.4.0

Yes indeed, thank you.   In this sense it has become "INVALID" (there's no "Defunct" option ..)