gyadav at ccilindia.co.in
2007-Mar-26 10:01 UTC
[R] Problem in loading all packages all at once
Hi All Please see the Rprofile file which i have modified as follows and after that when I start R then I see that R says to me "TRUE" for all the packages implying that all loaded at once. But when i try to use commands as simple as help("lm"), it doesnt work nor any of the menu "Packages" is not working. Although the regression using lm ( Y ~ X ) is working even summary and rnorm is working fine. Please tell me why menu and help command is not working Rprofile is in between +++++++++++++++++++++++++++ lines R initialization is in between @@@@@@@@@@@@@@ lines Commands are in between $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ lines Please also suggest me should i send this to r-devel list or not ### This is the system Rprofile file. It is always run on startup. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ options(scipen = 0) options(max.print = 10000)# not yet exercised in 'core R' options(add.smooth = TRUE)# currently only used in 'plot.lm' ############################################################################################## ############################################################################################## #############code added by gaurav yadav to install many other packages at startup############# print ("START OF CODE ADDED BY GAURAV YADAV") TEMP <- Sys.getenv("R_DEFAULT_PACKAGES") print ("R_DEFAULT_PACKAGES") print (TEMP) print ("=======") TEMP <- c(TEMP,"aplpack","approximator","apTreeshape","ArDec","arules","ash","aspace","assist","aster","asypow","aws","base","bayesm","bayesmix","bayesSurv","BayesTree","BayesValidate","betareg","Bhat","BHH2","bicreduc","biglm","bim","bindata","Biodem","biopara","bitops","bivpois","blighty","blockrand","BMA","boa","Bolstad","boolean","boost","boot","bootstrap","bqtl","BradleyTerry","brlr","BRugs","BSDA","BsMD","butler","calibrate","calibrator","caMassClass","car","cat","caTools","catspec","cba","cclust","CDNmoney","cfa","CGIwithR","changeLOS","chplot","chron","CircStats","circular","clac","class","classInt","classPP","clim.pact","climatol","clines","clue","cluster","clusterRepro","clustvarsel","cmprsk","cobs","CoCo","CoCoCg","CoCoCore","CoCoGraph","CoCoObjects","CoCoOldData","CoCoRaw","cocorresp","coda","coin","colorspace","combinat","compositions","concor","concord","cond","conf.design","connectedness","copula","corpcor","corpora","covRobust","coxrobust","cramer","crossdes","crq","c sampling","cslogistic","CTFS","ctv") TEMP <- c(TEMP,"CVThresh","cwhmath","cwhplot","cwhprint","cwhstat","cwhstring","cwhtool","cyclones","DAAG","datasets","date","Davies","DBI","dblcens","DCluster","DDHFm","deal","debug","deldir","delt","denpro","DEoptim","depmix","DescribeDisplay","Design","Devore5","Devore6","dglm","diamonds","dichromat","DICOM","digest","diptest","dispmod","distr","distrEx","distrSim","distrTEst","diveMove","doBy","DPpackage","dr","drc","drfit","dse1","dse2","dyn","dynamicGraph","dynlm","e1071","eba","EbayesThresh","Ecdat","eco","ecodist","edci","effects","eha","elasticnet","ElemStatLearn","ellipse","elliptic","emme2","emplik","emulator","EMV","energy","ensembleBMA","Epi","epitools","epsi","equivalence","evd","evdbayes","evir","exactLoglinTest","exactmaxsel","exactRankTests","extRemes","FactoMineR","Fahrmeir","far","faraway","fastICA","fBasics","fCalendar","fda","fdim","femmeR","fExtremes","fgac","fields","filehash","financial","FLCore","FLEDA","flexclust","flexmix","fMultivar","fOptions","foreign"," FortranCallsR","fortunes","forward") TEMP <- c(TEMP,"fpc","fPortfolio","fracdiff","frailtypack","fSeries","ftnonpar","FunCluster","fuzzyRankTests","g.data","gafit","gam","gamair","gamlss","gamlss.tr","GammaTest","gap","gbm","gclus","gcmrec","gdata","gee","geepack","genalg","Geneland","GeneNT","genetics","GeneTS","GenKern","geometry","geoR","geoRglm","ggm","ggplot","giRaph","gld","gllm","glmmML","glmpath","glpk","gmodels","gmp","gmt","gnm","GPArotation","gpclib","gplots","gpls","graphics","grasper","GRASS","gRbase","grDevices","gregmisc","grid","gridBase","grnnR","grouped","GroupSeq","gss","gstat","gsubfn","gtools","hapassoc","haplo.ccs","haplo.stats","hapsim","hddplot","hdf5","hdrcde","hett","HI","hier.part","hierfstat","HighProbability","Hmisc","hmm.discnp","homals","hopach","howmany","HSAUR","HTMLapplets","httpRequest","hwde","hybridHclust","HyperbolicDist","ICE","Icens","IDPmisc","ifs","igraph","iid.test","impute","ineq","intcox","iplots","ipred","irr","ismev","ISwR","its","iWidgets","JavaGD","JGR","JLLprod","JointGL M","kappalab","Kendall","kernlab") TEMP <- c(TEMP,"KernSmooth","kinship","kknn","klaR","km.ci","KMsurv","knncat","knnFinder","knnTree","kohonen","ks","kza","kzft","labdsv","labstatR","lars","lasso2","latentnet","lattice","latticeExtra","lazy","ldbounds","ldDesign","LDheatmap","leaps","lgtdl","limma","linprog","lme4","lmeSplines","LMGene","lmm","lmomco","Lmoments","lmtest","locfdr","locfit","lodplot","LogicReg","logistf","logspline","lokern","longitudinal","longmemo","LoopAnalyst","LowRankQP","lpridge","lpSolve","lsa","lspls","ltm","maanova","magic","mapLD","mapproj","maps","maptools","maptree","mAr","marg","MarkedPointProcess","MASS","Matching","MatchIt","mathgraph","matlab","Matrix","maxstat","MBESS","mblm","mcgibbsit","mclust","mcmc","MCMCpack","mda","MEMSS","merror","meta","methods","mfp","mgcv","mice","micEcdat","micEcon","aaMI","abind","accuracy","acepack","actuar","adapt","ade4","adehabitat","adlift","agce","agsemisc","akima","AlgDesign","allelic","alr3","amap","AMORE","AnalyzeFMRI","aod","ape","mimR","minpack.l m","misc3d","mitools","mix","mixreg") TEMP <- c(TEMP,"mlbench","mlica","mlmRev","mmlcr","mnormt","MNP","moc","modeltools","moments","monoProc","monreg","mprobit","MPV","MSBVAR","msm","muhaz","multcomp","multilevel","multinomRob","multtest","mvbutils","mvnmle","mvnormtest","mvoutlier","mvpart","mvtnorm","NADA","ncomplete","ncvar","negenes","network","neural","nFDR","NISTnls","nlme","nlmeODE","nlreg","nnet","nor1mix","norm","normalp","NORMT3","nortest","noverlap","npmc","numDeriv","nws","Oarray","odesolve","onion","optmatch","orientlib","ouch","outliers","oz","pamr","pan","panel","papply","partitions","partsm","party","pastecs","pbatR","PBSmapping","pcaPP","pcurve","pear","permax","permtest","perturb","pgam","pgirmess","pheno","phpSerialize","PHYLOGR","pinktoe","pixmap","PK","PKfit","plotrix","pls","plsgenomics","plugdensity","polspline","polyapost","polycor","polynom","popgen","portfolio","POT","powerpkg","ppc","pps","prabclus","princurve","ProbForecastGOP","proto","pscl","pspline","psy","PTAk","pvclust","pwr","pwt","QCA" ,"QCAGUI","qcc","qtl","qtlDesign") TEMP <- c(TEMP,"quadprog","quantchem","quantreg","quantregForest","qvalue","qvcalc","R.matlab","R.oo","R.utils","R2HTML","R2WinBUGS","race","RadioSonde","rake","randaes","RandomFields","randomForest","RandVar","rankreg","RArcInfo","RBloomberg","rbugs","Rcmdr","Rcmdr.HH","RColorBrewer","rcom","RcppTemplate","rda","ref","regress","relaimpo","relax","reldist","relimp","relsurv","reshape","ResistorArray","resper","RFA","Rfwdmv","rgdal","rgenoud","rgl","RGraphics","RII","rimage","riv","rJava","Rlab","rlecuyer","RLMM","Rmdr","rmeta","rmetasim","roblm","robustbase","ROCR","RODBC","Rpad","rpart","rqmcmb2","RQuantLib","rrcov","rrp","RSQLite","rstream","RSvgDevice","rtiff","RUnit","rv","Rwave","RWeka","RWinEdt","rwt","RXshrink","sac","SAGx","sampfling","sampling","samr","sandwich","SASmixed","sca","scape","scapeMCMC","scatterplot3d","scope","scuba","sde","seacarb","seas","seewave","sem","SemiPar","SensoMineR","SenSrivastava","seqinr","SeqKnn","seqmon","session","setRNG","sfsmisc","sgeostat","s hapefiles","shapes","SharedHT2","simex") TEMP <- c(TEMP,"simpleboot","SIN","skewt","sm","sma","smatr","smoothSurv","sn","sna","som","SoPhy","sound","sp","SparseLogReg","SparseM","spatial","spatialCovariance","spatstat","spc","spdep","spe","spectralGP","spectrino","spgwr","splancs","splines","ssanv","sspir","startupmsg","StatDataML","statmod","stats","stats4","stepwise","StoppingRules","strucchange","subselect","sudoku","supclust","superpc","SuppDists","survBayes","surveillance","survey","survival","survrec","svDialogs","svGUI","svIDE","svIO","svMisc","svmpath","svSocket","svViews","svWidgets","SwissAir","systemfit","tapiR","tcltk","tcltk2","tdist","tdthap","TeachingDemos","tensor","tframe","tgp","time","tkrplot","tlnise","tools","tree","treeglia","tripack","truncgof","trust","tseries","tseriesChaos","tsfa","tuneR","twang","tweedie","ump","UNF","untb","urca","urn","uroot","UsingR","USPS","utils","vabayelMix","VaR","vardiag","varmixt","varSelRF","vcd","VDCutil","vegan","verification","verify","vioplot","VLMC","wavelets","wave slim","wavethresh","wccsom","WhatIf") TEMP <- c(TEMP,"wle","XML","xtable","Zelig","zicounts","zoo") #TEMP <- c(TEMP,"runfirst") #TEMP <- c(TEMP,"runfirst","base","datasets", "utils", "grDevices", "graphics","stats","methods","lmtest") print ("MODIFIED R_DEFAULT_PACKAGES+++++++++++") print (TEMP) print ("++++++++++++++++") print(Sys.putenv(R_DEFAULT_PACKAGES=TEMP)) print ("END OF CODE ADDED BY GAURAV YADAV") ############################################################################################## ############################################################################################## local({dp <- as.vector(Sys.getenv("R_DEFAULT_PACKAGES")) if(identical(dp, "")) # marginally faster to do methods last dp <- c("datasets", "utils", "grDevices", "graphics", "stats", "methods") else if(identical(dp, "NULL")) dp <- character(0) else dp <- strsplit(dp, ",")[[1]] dp <- sub("[[:blank:]]*([[:alnum:]]+)", "\\1", dp) # strip whitespace options(defaultPackages = dp) }) .First.sys <- function() ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ THE R SHOWS ME THIS GIVEN HEREIN BELOW WHEN I START R @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ [1] "START OF CODE ADDED BY GAURAV YADAV" [1] "R_DEFAULT_PACKAGES+++++++++++" R_DEFAULT_PACKAGES "" [1] "++++++++++++++++" [1] "MODIFIED R_DEFAULT_PACKAGES+++++++++++" R_DEFAULT_PACKAGES "" "aplpack" "approximator" "apTreeshape" "ArDec" "arules" "ash" "aspace" "assist" "aster" "asypow" "aws" "base" "bayesm" "bayesmix" "bayesSurv" "BayesTree" "BayesValidate" "betareg" "Bhat" "BHH2" "bicreduc" "biglm" "bim" "bindata" "Biodem" "biopara" "bitops" "bivpois" "blighty" "blockrand" "BMA" "boa" "Bolstad" "boolean" "boost" "boot" "bootstrap" "bqtl" "BradleyTerry" "brlr" "BRugs" "BSDA" "BsMD" "butler" "calibrate" "calibrator" "caMassClass" "car" "cat" "caTools" "catspec" "cba" "cclust" "CDNmoney" "cfa" "CGIwithR" "changeLOS" "chplot" "chron" "CircStats" "circular" "clac" "class" "classInt" "classPP" "clim.pact" "climatol" "clines" "clue" "cluster" "clusterRepro" "clustvarsel" "cmprsk" "cobs" "CoCo" "CoCoCg" "CoCoCore" "CoCoGraph" "CoCoObjects" "CoCoOldData" "CoCoRaw" "cocorresp" "coda" "coin" "colorspace" "combinat" "compositions" "concor" "concord" "cond" "conf.design" "connectedness" "copula" "corpcor" "corpora" "covRobust" "coxrobust" "cramer" "crossdes" "crq" "csampling" "cslogistic" "CTFS" "ctv" "CVThresh" "cwhmath" "cwhplot" "cwhprint" "cwhstat" "cwhstring" "cwhtool" "cyclones" "DAAG" "datasets" "date" "Davies" "DBI" "dblcens" "DCluster" "DDHFm" "deal" "debug" "deldir" "delt" "denpro" "DEoptim" "depmix" "DescribeDisplay" "Design" "Devore5" "Devore6" "dglm" "diamonds" "dichromat" "DICOM" "digest" "diptest" "dispmod" "distr" "distrEx" "distrSim" "distrTEst" "diveMove" "doBy" "DPpackage" "dr" "drc" "drfit" "dse1" "dse2" "dyn" "dynamicGraph" "dynlm" "e1071" "eba" "EbayesThresh" "Ecdat" "eco" "ecodist" "edci" "effects" "eha" "elasticnet" "ElemStatLearn" "ellipse" "elliptic" "emme2" "emplik" "emulator" "EMV" "energy" "ensembleBMA" "Epi" "epitools" "epsi" "equivalence" "evd" "evdbayes" "evir" "exactLoglinTest" "exactmaxsel" "exactRankTests" "extRemes" "FactoMineR" "Fahrmeir" "far" "faraway" "fastICA" "fBasics" "fCalendar" "fda" "fdim" "femmeR" "fExtremes" "fgac" "fields" "filehash" "financial" "FLCore" "FLEDA" "flexclust" "flexmix" "fMultivar" "fOptions" "foreign" "FortranCallsR" "fortunes" "forward" "fpc" "fPortfolio" "fracdiff" "frailtypack" "fSeries" "ftnonpar" "FunCluster" "fuzzyRankTests" "g.data" "gafit" "gam" "gamair" "gamlss" "gamlss.tr" "GammaTest" "gap" "gbm" "gclus" "gcmrec" "gdata" "gee" "geepack" "genalg" "Geneland" "GeneNT" "genetics" "GeneTS" "GenKern" "geometry" "geoR" "geoRglm" "ggm" "ggplot" "giRaph" "gld" "gllm" "glmmML" "glmpath" "glpk" "gmodels" "gmp" "gmt" "gnm" "GPArotation" "gpclib" "gplots" "gpls" "graphics" "grasper" "GRASS" "gRbase" "grDevices" "gregmisc" "grid" "gridBase" "grnnR" "grouped" "GroupSeq" "gss" "gstat" "gsubfn" "gtools" "hapassoc" "haplo.ccs" "haplo.stats" "hapsim" "hddplot" "hdf5" "hdrcde" "hett" "HI" "hier.part" "hierfstat" "HighProbability" "Hmisc" "hmm.discnp" "homals" "hopach" "howmany" "HSAUR" "HTMLapplets" "httpRequest" "hwde" "hybridHclust" "HyperbolicDist" "ICE" "Icens" "IDPmisc" "ifs" "igraph" "iid.test" "impute" "ineq" "intcox" "iplots" "ipred" "irr" "ismev" "ISwR" "its" "iWidgets" "JavaGD" "JGR" "JLLprod" "JointGLM" "kappalab" "Kendall" "kernlab" "KernSmooth" "kinship" "kknn" "klaR" "km.ci" "KMsurv" "knncat" "knnFinder" "knnTree" "kohonen" "ks" "kza" "kzft" "labdsv" "labstatR" "lars" "lasso2" "latentnet" "lattice" "latticeExtra" "lazy" "ldbounds" "ldDesign" "LDheatmap" "leaps" "lgtdl" "limma" "linprog" "lme4" "lmeSplines" "LMGene" "lmm" "lmomco" "Lmoments" "lmtest" "locfdr" "locfit" "lodplot" "LogicReg" "logistf" "logspline" "lokern" "longitudinal" "longmemo" "LoopAnalyst" "LowRankQP" "lpridge" "lpSolve" "lsa" "lspls" "ltm" "maanova" "magic" "mapLD" "mapproj" "maps" "maptools" "maptree" "mAr" "marg" "MarkedPointProcess" "MASS" "Matching" "MatchIt" "mathgraph" "matlab" "Matrix" "maxstat" "MBESS" "mblm" "mcgibbsit" "mclust" "mcmc" "MCMCpack" "mda" "MEMSS" "merror" "meta" "methods" "mfp" "mgcv" "mice" "micEcdat" "micEcon" "aaMI" "abind" "accuracy" "acepack" "actuar" "adapt" "ade4" "adehabitat" "adlift" "agce" "agsemisc" "akima" "AlgDesign" "allelic" "alr3" "amap" "AMORE" "AnalyzeFMRI" "aod" "ape" "mimR" "minpack.lm" "misc3d" "mitools" "mix" "mixreg" "mlbench" "mlica" "mlmRev" "mmlcr" "mnormt" "MNP" "moc" "modeltools" "moments" "monoProc" "monreg" "mprobit" "MPV" "MSBVAR" "msm" "muhaz" "multcomp" "multilevel" "multinomRob" "multtest" "mvbutils" "mvnmle" "mvnormtest" "mvoutlier" "mvpart" "mvtnorm" "NADA" "ncomplete" "ncvar" "negenes" "network" "neural" "nFDR" "NISTnls" "nlme" "nlmeODE" "nlreg" "nnet" "nor1mix" "norm" "normalp" "NORMT3" "nortest" "noverlap" "npmc" "numDeriv" "nws" "Oarray" "odesolve" "onion" "optmatch" "orientlib" "ouch" "outliers" "oz" "pamr" "pan" "panel" "papply" "partitions" "partsm" "party" "pastecs" "pbatR" "PBSmapping" "pcaPP" "pcurve" "pear" "permax" "permtest" "perturb" "pgam" "pgirmess" "pheno" "phpSerialize" "PHYLOGR" "pinktoe" "pixmap" "PK" "PKfit" "plotrix" "pls" "plsgenomics" "plugdensity" "polspline" "polyapost" "polycor" "polynom" "popgen" "portfolio" "POT" "powerpkg" "ppc" "pps" "prabclus" "princurve" "ProbForecastGOP" "proto" "pscl" "pspline" "psy" "PTAk" "pvclust" "pwr" "pwt" "QCA" "QCAGUI" "qcc" "qtl" "qtlDesign" "quadprog" "quantchem" "quantreg" "quantregForest" "qvalue" "qvcalc" "R.matlab" "R.oo" "R.utils" "R2HTML" "R2WinBUGS" "race" "RadioSonde" "rake" "randaes" "RandomFields" "randomForest" "RandVar" "rankreg" "RArcInfo" "RBloomberg" "rbugs" "Rcmdr" "Rcmdr.HH" "RColorBrewer" "rcom" "RcppTemplate" "rda" "ref" "regress" "relaimpo" "relax" "reldist" "relimp" "relsurv" "reshape" "ResistorArray" "resper" "RFA" "Rfwdmv" "rgdal" "rgenoud" "rgl" "RGraphics" "RII" "rimage" "riv" "rJava" "Rlab" "rlecuyer" "RLMM" "Rmdr" "rmeta" "rmetasim" "roblm" "robustbase" "ROCR" "RODBC" "Rpad" "rpart" "rqmcmb2" "RQuantLib" "rrcov" "rrp" "RSQLite" "rstream" "RSvgDevice" "rtiff" "RUnit" "rv" "Rwave" "RWeka" "RWinEdt" "rwt" "RXshrink" "sac" "SAGx" "sampfling" "sampling" "samr" "sandwich" "SASmixed" "sca" "scape" "scapeMCMC" "scatterplot3d" "scope" "scuba" "sde" "seacarb" "seas" "seewave" "sem" "SemiPar" "SensoMineR" "SenSrivastava" "seqinr" "SeqKnn" "seqmon" "session" "setRNG" "sfsmisc" "sgeostat" "shapefiles" "shapes" "SharedHT2" "simex" "simpleboot" "SIN" "skewt" "sm" "sma" "smatr" "smoothSurv" "sn" "sna" "som" "SoPhy" "sound" "sp" "SparseLogReg" "SparseM" "spatial" "spatialCovariance" "spatstat" "spc" "spdep" "spe" "spectralGP" "spectrino" "spgwr" "splancs" "splines" "ssanv" "sspir" "startupmsg" "StatDataML" "statmod" "stats" "stats4" "stepwise" "StoppingRules" "strucchange" "subselect" "sudoku" "supclust" "superpc" "SuppDists" "survBayes" "surveillance" "survey" "survival" "survrec" "svDialogs" "svGUI" "svIDE" "svIO" "svMisc" "svmpath" "svSocket" "svViews" "svWidgets" "SwissAir" "systemfit" "tapiR" "tcltk" "tcltk2" "tdist" "tdthap" "TeachingDemos" "tensor" "tframe" "tgp" "time" "tkrplot" "tlnise" "tools" "tree" "treeglia" "tripack" "truncgof" "trust" "tseries" "tseriesChaos" "tsfa" "tuneR" "twang" "tweedie" "ump" "UNF" "untb" "urca" "urn" "uroot" "UsingR" "USPS" "utils" "vabayelMix" "VaR" "vardiag" "varmixt" "varSelRF" "vcd" "VDCutil" "vegan" "verification" "verify" "vioplot" "VLMC" "wavelets" "waveslim" "wavethresh" "wccsom" "WhatIf" "wle" "XML" "xtable" "Zelig" "zicounts" "zoo" [1] "++++++++++++++++" [1] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE [16] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE [31] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE [46] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE [61] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE [76] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE [91] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE [106] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE [121] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE [136] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE [151] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE [166] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE [181] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE [196] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE [211] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE [226] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE [241] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE [256] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE [271] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE [286] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE [301] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE [316] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE [331] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE [346] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE [361] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE [376] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE [391] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE [406] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE [421] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE [436] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE [451] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE [466] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE [481] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE [496] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE [511] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE [526] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE [541] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE [556] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE [571] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE [586] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE [601] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE [616] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE [631] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE [646] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE [661] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE [676] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE [691] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE [706] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE [721] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE [736] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE [751] TRUE TRUE TRUE TRUE TRUE TRUE TRUE [1] "END OF CODE ADDED BY GAURAV YADAV" R : Copyright 2006, The R Foundation for Statistical Computing Version 2.3.0 (2006-04-24) ISBN 3-900051-07-0 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. Natural language support but running in an English locale R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. [Previously saved workspace restored]>@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. [Previously saved workspace restored]> help("lm")Error: could not find function "help"> help.search("regression")Error: could not find function "help.search"> local({pkg <- select.list(sort(.packages(all.available = TRUE)))+ if(nchar(pkg)) library(pkg, character.only=TRUE)}) Error in eval(expr, envir, enclos) : could not find function "select.list"> chooseCRANmirror()Error: could not find function "chooseCRANmirror"> setRepositories()Error: could not find function "setRepositories"> utils:::menuInstallPkgs()--- Please select a CRAN mirror for use in this session --- Error in open.connection(file, "r") : unable to open connection In addition: Warning message: unable to connect to 'cran.r-project.org' on port 80. Error in contrib.url(repos, type) : trying to use CRAN without setting a mirror> update.packages(ask='graphics')Error: could not find function "update.packages"> utils:::menuInstallLocal()Error in install.packages(choose.files("", filters = Filters[c("zip", : no packages were specified> X<-rnorm(1000) > Y<-rnorm(1000) > result<-lm(Y ~ X) > summary(result)Call: lm(formula = Y ~ X) Residuals: Min 1Q Median 3Q Max -3.0047 -0.7205 0.0203 0.7232 3.1052 Coefficients: Estimate Std. Error t value Pr(>|t|) (Intercept) 0.0347667 0.0322268 1.079 0.281 X -0.0009727 0.0320626 -0.030 0.976 Residual standard error: 1.018 on 998 degrees of freedom Multiple R-Squared: 9.223e-07, Adjusted R-squared: -0.001001 F-statistic: 0.0009204 on 1 and 998 DF, p-value: 0.9758>$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ ===========================================================================================DISCLAIMER AND CONFIDENTIALITY CAUTION:\ \ This message and ...{{dropped}}
A couple of things: 1) It would have been a lot easier to help you if you had created a much smaller example. perhaps trying to load 2-3 packages instead of 1000. Now we have to wade through a lot of stuff to get to the point. 2) Perhaps your call to Sys.putenv doesn't do quite what you expect it to do. Example: > TEMP <- c("a","b") > Sys.getenv("TEST") TEST "" > Sys.putenv(TEST=TEMP) > Sys.getenv("TEST") TEST "b" 3) I couldn't really see where in your code all these packages are loaded. Reading the help for .First.sys tells me that that's the call that actually loads the default packages, unless I've misunderstood something. If that's the case, then the following line you have at the end would prevent this loading: .First.sys <- function() I must say that from the ?Startup help there are two things that are not very clear: a) At what point in the load process is R_DEFAULT_PACKAGES checked? .First.sys doesn't seem to know about it. Ok, a bit of search provided an answer to this: Reading the help for "options", I see there, in the section about defaultPackages, what is probably the most helpful bit (for me) in all this: defaultPackages: the packages that are attached by default when R starts up. Initially set from value of the environment variable R_DEFAULT_PACKAGES, or if that is unset to c("datasets", "utils", "grDevices", "graphics", "stats", "methods"). (Set R_DEFAULT_PACKAGES to NULL or a comma-separated list of package names.) A call to options should be in your ?.Rprofile? file to ensure that the change takes effect before the base package is initialized (see Startup). b) What is the format that the R_DEFAULT_PACKAGES variable must have (I guess now I know, since it is mentioned in ?options, though that's not really the place I would have expected it to be explained) ? The only examples I could find on the web were setting it to NULL. Hope all this helps in some way. Haris Skiadas Department of Mathematics and Computer Science Hanover College On Mar 26, 2007, at 6:01 AM, gyadav at ccilindia.co.in wrote:> > Hi All > > Please see the Rprofile file which i have modified as follows and > after > that when I start R then I see that R says to me "TRUE" for all the > packages implying that all loaded at once. > But when i try to use commands as simple as help("lm"), it doesnt > work nor > any of the menu "Packages" is not working. > Although the regression using lm ( Y ~ X ) is working even summary and > rnorm is working fine. > Please tell me why menu and help command is not working > > Rprofile is in between +++++++++++++++++++++++++++ lines > R initialization is in between @@@@@@@@@@@@@@ lines > Commands are in between $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ lines > > Please also suggest me should i send this to r-devel list or not > > ### This is the system Rprofile file. It is always run on startup. > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > ++++ > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > ++++ > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > ++++ > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > ++++ > options(scipen = 0) > options(max.print = 10000)# not yet exercised in 'core R' > options(add.smooth = TRUE)# currently only used in 'plot.lm' > > ###################################################################### > ######################## > ###################################################################### > ######################## > #############code added by gaurav yadav to install many other > packages at > startup############# > print ("START OF CODE ADDED BY GAURAV YADAV") > TEMP <- Sys.getenv("R_DEFAULT_PACKAGES") > print ("R_DEFAULT_PACKAGES") > print (TEMP) > print ("=======") > TEMP <- > c > (TEMP,"aplpack","approximator","apTreeshape","ArDec","arules","ash","a > space","assist","aster","asypow","aws","base","bayesm","bayesmix","bay > esSurv","BayesTree","BayesValidate","betareg","Bhat","BHH2","bicreduc" > ,"biglm","bim","bindata","Biodem","biopara","bitops","bivpois","blight > y","blockrand","BMA","boa","Bolstad","boolean","boost","boot","bootstr > ap","bqtl","BradleyTerry","brlr","BRugs","BSDA","BsMD","butler","calib > rate","calibrator","caMassClass","car","cat","caTools","catspec","cba" > ,"cclust","CDNmoney","cfa","CGIwithR","changeLOS","chplot","chron","Ci > rcStats","circular","clac","class","classInt","classPP","clim.pact","c > limatol","clines","clue","cluster","clusterRepro","clustvarsel","cmprs > k","cobs","CoCo","CoCoCg","CoCoCore","CoCoGraph","CoCoObjects","CoCoOl > dData","CoCoRaw","cocorresp","coda","coin","colorspace","combinat","co > mpositions","concor","concord","cond","conf.design","connectedness","c > opula","corpcor","corpora","covRobust","coxrobust","cramer","crossdes" > ,"crq","c > sampling","cslogistic","CTFS","ctv") >[snip]> #TEMP <- c(TEMP,"runfirst","base","datasets", "utils", "grDevices", > "graphics","stats","methods","lmtest") > print ("MODIFIED R_DEFAULT_PACKAGES+++++++++++") > print (TEMP) > print ("++++++++++++++++") > print(Sys.putenv(R_DEFAULT_PACKAGES=TEMP)) > print ("END OF CODE ADDED BY GAURAV YADAV") > > ###################################################################### > ######################## > ###################################################################### > ######################## > > > local({dp <- as.vector(Sys.getenv("R_DEFAULT_PACKAGES")) > if(identical(dp, "")) # marginally faster to do methods last > dp <- c("datasets", "utils", "grDevices", "graphics", > "stats", "methods") > else if(identical(dp, "NULL")) dp <- character(0) > else dp <- strsplit(dp, ",")[[1]] > dp <- sub("[[:blank:]]*([[:alnum:]]+)", "\\1", dp) # strip > whitespace > options(defaultPackages = dp) > }) > > .First.sys <- function() > > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > ++++ > > THE R SHOWS ME THIS GIVEN HEREIN BELOW WHEN I START R > @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ > [1] "START OF CODE ADDED BY GAURAV YADAV" > [1] "R_DEFAULT_PACKAGES+++++++++++" > R_DEFAULT_PACKAGES > "" > [1] "++++++++++++++++" > [1] "MODIFIED R_DEFAULT_PACKAGES+++++++++++" > R_DEFAULT_PACKAGES > "" "aplpack" "approximator" > >[snip tons of packages]> [1] "++++++++++++++++" > [1] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE > TRUE TRUE > [751] TRUE TRUE TRUE TRUE TRUE TRUE TRUE > [1] "END OF CODE ADDED BY GAURAV YADAV" > > R : Copyright 2006, The R Foundation for Statistical Computing > Version 2.3.0 (2006-04-24) > ISBN 3-900051-07-0 > > R is free software and comes with ABSOLUTELY NO WARRANTY. > You are welcome to redistribute it under certain conditions. > Type 'license()' or 'licence()' for distribution details. > > Natural language support but running in an English locale > > R is a collaborative project with many contributors. > Type 'contributors()' for more information and > 'citation()' on how to cite R or R packages in publications. > > Type 'demo()' for some demos, 'help()' for on-line help, or > 'help.start()' for an HTML browser interface to help. > Type 'q()' to quit R. > > [Previously saved workspace restored] > >> > > @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ > > $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ > > Type 'demo()' for some demos, 'help()' for on-line help, or > 'help.start()' for an HTML browser interface to help. > Type 'q()' to quit R. > > [Previously saved workspace restored] > >> help("lm") > Error: could not find function "help" >> help.search("regression") > Error: could not find function "help.search" >> local({pkg <- select.list(sort(.packages(all.available = TRUE))) > + if(nchar(pkg)) library(pkg, character.only=TRUE)}) > Error in eval(expr, envir, enclos) : could not find function > "select.list" >> chooseCRANmirror() > Error: could not find function "chooseCRANmirror" >> setRepositories() > Error: could not find function "setRepositories" >> utils:::menuInstallPkgs() > --- Please select a CRAN mirror for use in this session --- > Error in open.connection(file, "r") : unable to open connection > In addition: Warning message: > unable to connect to 'cran.r-project.org' on port 80. > Error in contrib.url(repos, type) : trying to use CRAN without > setting a > mirror >> update.packages(ask='graphics') > Error: could not find function "update.packages" >> utils:::menuInstallLocal() > Error in install.packages(choose.files("", filters = Filters[c > ("zip", : > no packages were specified >> X<-rnorm(1000) >> Y<-rnorm(1000) >> result<-lm(Y ~ X) >> summary(result) > > Call: > lm(formula = Y ~ X) > > Residuals: > Min 1Q Median 3Q Max > -3.0047 -0.7205 0.0203 0.7232 3.1052 > > Coefficients: > Estimate Std. Error t value Pr(>|t|) > (Intercept) 0.0347667 0.0322268 1.079 0.281 > X -0.0009727 0.0320626 -0.030 0.976 > > Residual standard error: 1.018 on 998 degrees of freedom > Multiple R-Squared: 9.223e-07, Adjusted R-squared: -0.001001 > F-statistic: 0.0009204 on 1 and 998 DF, p-value: 0.9758 > >> > > $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
Possibly Parallel Threads
- R 1.7.0: Startup error: Error in "class<-"(*tmp*, value = Class) : couldn't find function "objWithClass"
- Stop packages and datasets to be loaded on startup.
- Rscript fails with some packages (for example, h5)
- error for installation
- Error: package or namespace load failed for ‘utils