Skip to content
Prev 361930 / 398506 Next

[FORGED] Ask function missing in package car

Since R is open source, the source code for packages is stored on CRAN mirrors. A little navigation gets us to 

https://cloud.r-project.org/src/contrib/Archive/car/

Loading car_1.2-16.tar.gz, the last version before car_2.0 gives the code for Ask():

# change an argument to a function interactively (J. Fox)

Ask<-function(arg, fun, ...){ 
    fun<-fun
    repeat{   
        value<-readline(paste("Enter",deparse(substitute(arg)),": "))
        if (value == "") break()
        eval(parse(text=paste("fun(",deparse(substitute(arg)),"=",value,",...)")))
        }
    }

Running this code will create the function.

-------------------------------------
David L Carlson
Department of Anthropology
Texas A&M University
College Station, TX 77840-4352




-----Original Message-----
From: R-help [mailto:r-help-bounces at r-project.org] On Behalf Of Ashim Kapoor
Sent: Wednesday, June 22, 2016 12:35 AM
To: Fox, John
Cc: R-help
Subject: Re: [R] [FORGED] Ask function missing in package car

Dear Sir,

Thank you.

Best Regards,
Ashim
On Wed, Jun 22, 2016 at 10:47 AM, Fox, John <jfox at mcmaster.ca> wrote:

            
______________________________________________
R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.