[R] How automatic Y on install y/n prompts?

Dimlak Gorkehgz rain8dome9 at gmail.com
Fri Aug 4 11:17:58 CEST 2017


Thank you that worked.

On Tue, Aug 1, 2017 at 9:43 PM, Jeff Newmiller <jdnewmil at dcn.davis.ca.us>
wrote:

> You should read the section on Indexing in the Introduction to R document
> that comes with R, regarding $ and `[[`.
> --
> Sent from my phone. Please excuse my brevity.
>
> On August 1, 2017 2:44:18 AM PDT, Dimlak Gorkehgz <rain8dome9 at gmail.com>
> wrote:
> >You are right, maintainer does keep a list of model's packages.
> >
> >So how do I use a variable instead of $adaboost$?
> >
> >getModelInfo()$adaboost$library
> >
> >
> >
> >Also, server not found:
> >http://rwiki.sciviews.org/doku.php?id=getting-started:
> reference-cards:getting-help
> >
> >On Tue, Aug 1, 2017 at 11:46 AM, Bert Gunter <bgunter.4567 at gmail.com>
> >wrote:
> >
> >> I have provided you all the "advice" I can. Sorry it didn't help. You
> >> should re-post your responses to me to r-help so that others might
> >> help. you might also email the maintainer, found via the maintainer()
> >> function, who may not monitor the list.
> >>
> >> Cheers,
> >> Bert
> >> Bert Gunter
> >>
> >> "The trouble with having an open mind is that people keep coming
> >along
> >> and sticking things into it."
> >> -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
> >>
> >>
> >> On Mon, Jul 31, 2017 at 9:38 PM, Dimlak Gorkehgz
> ><rain8dome9 at gmail.com>
> >> wrote:
> >> >  tools::package_dependencies(packs, available.packages(),
> >> > +                             which=c("Imports",
> >> "LinkingTo","Enhances"), #
> >> > +                             recursive=T)
> >> >
> >> >
> >> >
> >> > (and suggests, and imports, and everything) does not include most
> >> packages
> >> > needed by every model. Recursive everything downloads most of all
> >> packages
> >> > available of CRAN. And then some necessary packages are not
> >available and
> >> > every pass through brings up a prompt for them.
> >> >
> >> >
> >> >
> >> >
> >> > On Tue, Aug 1, 2017 at 11:12 AM, Dimlak Gorkehgz
> ><rain8dome9 at gmail.com>
> >> > wrote:
> >> >>
> >> >> Excuse me if I did not explain myself correctly but I currently
> >use:
> >> >>
> >> >> list.of.packages <- c("caretEnsemble","logicFS","
> >> >> RWeka","ordinalNet","xgboost","mlr","caret","MLmetrics","
> >> bartMachine","spikeslab","party","rqPen","monomvn","
> >> foba","logicFS","rPython","qrnn","randomGLM","msaenet","
> >> Rborist","relaxo","ordinalNet","rrf","frbs","extraTrees","
> >> ipred","elasticnet","bst","brnn","Boruta","arm","elmNN","
> >>
> >evtree","extraTrees","deepnet","kknn","KRLS","RSNNS"
> ,"partDSA","plsRglm","
> >> quantregForest","ranger","inTrees")
> >> >> new.packages <- list.of.packages[!(list.of.packages %in%
> >> >> installed.packages()[,"Package"])]
> >> >> if(length(new.packages)) install.packages(new.packages, dep =
> >TRUE)
> >> >>
> >> >> #install.packages("mlr", dependencies = c("Depends", "Suggests"))
> >> >> #install.packages("caret", dependencies = c("Depends",
> >"Suggests"))
> >> >>
> >> >> caret adds new algorithms fairly often but does not put them into
> >> >> suggests.
> >> >> On Tue, Aug 1, 2017 at 12:45 AM, Bert Gunter
> ><bgunter.4567 at gmail.com>
> >> >> wrote:
> >> >>>
> >> >>> ?install.packages
> >> >>>
> >> >>> and pay attention to the "dependencies" argument.
> >> >>>
> >> >>> Th RStudio interface does not appear to allow for "suggests"
> >packages
> >> >>> (correction appreciated if this is wrong) , which the command
> >line
> >> >>> makes available.
> >> >>>
> >> >>> HTH.
> >> >>>
> >> >>> Cheers,
> >> >>> Bert
> >> >>>
> >> >>>
> >> >>> Bert Gunter
> >> >>>
> >> >>> "The trouble with having an open mind is that people keep coming
> >along
> >> >>> and sticking things into it."
> >> >>> -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip
> >)
> >> >>>
> >> >>>
> >> >>> On Mon, Jul 31, 2017 at 5:07 AM, Dimlak Gorkehgz
> ><rain8dome9 at gmail.com
> >> >
> >> >>> wrote:
> >> >>> > I am testing most of the models caret supports on a bunch of
> >PCs.
> >> >>> > Unfortunately caret "suggested" packages do not include most of
> >the
> >> >>> > model
> >> >>> > packages available to caret. Every time a new version of R
> >comes out
> >> I
> >> >>> > have
> >> >>> > to sit in front of each PC and wait for each prompt to press
> >the 1
> >> >>> > button
> >> >>> > and Enter. Is there an option I could set to tell R or Rstudio
> >to
> >> just
> >> >>> > install anything asked for? A for every a/s/n prompt too.
> >> >>> >
> >> >>> >         [[alternative HTML version deleted]]
> >> >>> >
> >> >>> > ______________________________________________
> >> >>> > 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.
> >> >>
> >> >>
> >> >
> >>
> >
> >       [[alternative HTML version deleted]]
> >
> >______________________________________________
> >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.
>

	[[alternative HTML version deleted]]



More information about the R-help mailing list