Limitation of C function in R?

Hello experts,

I am trying to create a list using C syntax.

Now, it works fine up till here,

x= c("abc","abc.data","abind","acepack","actuar","ade4","AdMit","AER","agricolae","AlgDesign","alluvial","andrews","anomalize","anytime","aod","apcluster","ape","aplpack","approximator","arm","arules","arulesViz","ash","assertthat","autocogs","AzureML","BaBooN","BACCO","backports","BaM","BAS","base","base2grob","base64","base64enc","BayesDA","BayesFactor","bayesGARCH","bayesm","bayesmix","bayesplot","bayesQR","bayesSurv","Bayesthresh","BayesTree","BayesValidate","BayesX","BayHaz","bbemkr","BCBCSF","BCE","bclust","bcp","BDgraph","beanplot","beeswarm","benford.analysis","BenfordTests","bfp","BH","biglm","bindr","bindrcpp","binom","bisoreg","bit","bit64","bitops","bizdays","blme","blob","BLR","BMA","Bmix","bmp","BMS","bnlearn","boa","bomrang","boot","bootstrap","Boruta","bqtl","BradleyTerry2","brew","brglm","broom","bspec","bspmma","bupaR","BVS","C50","Cairo","cairoDevice","calibrate","calibrator","callr","car","carData","caret","catnet","caTools","cclust","cellranger","ChainLadder","checkmate","checkpoint","choroplethrMaps","chron","circlize","Ckmeans.1d.dp","class","classInt","cli","ClickClust","clickstream","clue","cluster","clv","cmprsk","coda","codetools","coefplot","coin","collapsibleTree","colorRamps","colorspace","combinat","commonmark","compiler","compositions","CORElearn","corpcor","corrgram","corrplot","covr","cowplot","cplm","crayon","crosstalk","cslogistic","cts","ctv","cubature","Cubist","curl","CVST","cvTools","d3heatmap","d3Network","d3r","data.table","data.tree","datasets","date","DBI","dbplyr","dbscan","dclone","ddalpha","deal","debugme","deepnet","deldir","dendextend","DEoptimR","deployrRserve","Deriv","desc","descr","deSolve","devtools","DiagrammeR","DiagrammeRsvg","dichromat","digest","dimRed","diptest","DistributionUtils","distrom","dlm","DMwR","doBy","doParallel","doSNOW","dotCall64","downloader","dplyr","DPpackage","DRR","dse","DT","dtt","dtw","dygraphs","dynlm","e1071","earth","EbayesThresh","ebdbNet","ecm","edeaR","effects","ellipse","ellipsis","emmeans","emulator","energy","english","ensembleBMA","entropy","estimability","eulerr","EvalEst","evaluate","evd","evdbayes","eventdataR","exactLoglinTest","exactRankTests","expint","expm","extraDistr","extrafont","extrafontdb","extremevalues","ez","factoextra","FactoMineR","factorQR","fansi","faoutlier","farver","fastICA","fastmatch","fBasics","fdrtool","fGarch","fields","filehash","FinCal","fitdistrplus","flashClust","flexclust","flexmix","FME","fmsb","FNN","fontBitstreamVera","fontLiberation","fontquiver","forcats","foreach","forecast","forecastHybrid","foreign","formatR","formattable","Formula","fpc","fracdiff","fTrading","fUnitRoots","futile.logger","futile.options","gam","gamlr","gamlss","gamlss.data","gamlss.dist","gbm","gclus","gdalUtils","gdata","gdtools","gee","genalg","genetics","GenSA","geojson","geojsonio","geojsonlint","geoR","geoRglm","geosphere","GGally","ggalt","gganimate","ggcorrplot","ggdendro","ggeffects","ggforce","ggformula","ggfortify","ggimage","ggjoy","ggm","ggmap","ggmcmc","ggplot2","ggplot2movies","ggpmisc","ggpubr","ggQC","ggraph","ggrepel","ggridges","ggsci","ggsignif","ggsoccer","ggstance","ggtern","ggthemes","gistr","git2r","glasso","glmmBUGS","glmmTMB","glmnet","GlobalOptions","glue","gmodels","gmp","gnm","goftest","googleVis","gower","GPArotation","gplots","graphics","grDevices","grid","gridBase","gridExtra","gridGraphics","growcurves","grpreg","gss","gstat","gsubfn","gtable","gtools","gtrendsR","gWidgets","gWidgetsRGtk2","gWidgetstcltk","haplo.stats","hash","haven","hbsae","HDInterval","hdrcde","heatmaply","heavy","hexbin","hflights","HH","HI","highcharter","highr","HistData","Hmisc","hms","hoardr","HSAUR","htmlTable","htmltools","htmlwidgets","hts","httpuv","httr","huge","hunspell","IBrokers","ifultools","igraph","imager","influenceR","inline","intervals","inum","ipred","irlba","irr","ISOcodes","iterators","janeaustenr","janitor","jpeg","jqr","jsonlite","jsonvalidate","jtools","kableExtra","Kendall","kernlab","KernSmooth","KFKSDS","kinship2","kknn","klaR","km.ci","KMsurv","knitr","ks","labeling","labelled","laeken")

But it fails, if I add another one.

x=c("abc","abc.data","abind","acepack","actuar","ade4","AdMit","AER","agricolae","AlgDesign","alluvial","andrews","anomalize","anytime","aod","apcluster","ape","aplpack","approximator","arm","arules","arulesViz","ash","assertthat","autocogs","AzureML","BaBooN","BACCO","backports","BaM","BAS","base","base2grob","base64","base64enc","BayesDA","BayesFactor","bayesGARCH","bayesm","bayesmix","bayesplot","bayesQR","bayesSurv","Bayesthresh","BayesTree","BayesValidate","BayesX","BayHaz","bbemkr","BCBCSF","BCE","bclust","bcp","BDgraph","beanplot","beeswarm","benford.analysis","BenfordTests","bfp","BH","biglm","bindr","bindrcpp","binom","bisoreg","bit","bit64","bitops","bizdays","blme","blob","BLR","BMA","Bmix","bmp","BMS","bnlearn","boa","bomrang","boot","bootstrap","Boruta","bqtl","BradleyTerry2","brew","brglm","broom","bspec","bspmma","bupaR","BVS","C50","Cairo","cairoDevice","calibrate","calibrator","callr","car","carData","caret","catnet","caTools","cclust","cellranger","ChainLadder","checkmate","checkpoint","choroplethrMaps","chron","circlize","Ckmeans.1d.dp","class","classInt","cli","ClickClust","clickstream","clue","cluster","clv","cmprsk","coda","codetools","coefplot","coin","collapsibleTree","colorRamps","colorspace","combinat","commonmark","compiler","compositions","CORElearn","corpcor","corrgram","corrplot","covr","cowplot","cplm","crayon","crosstalk","cslogistic","cts","ctv","cubature","Cubist","curl","CVST","cvTools","d3heatmap","d3Network","d3r","data.table","data.tree","datasets","date","DBI","dbplyr","dbscan","dclone","ddalpha","deal","debugme","deepnet","deldir","dendextend","DEoptimR","deployrRserve","Deriv","desc","descr","deSolve","devtools","DiagrammeR","DiagrammeRsvg","dichromat","digest","dimRed","diptest","DistributionUtils","distrom","dlm","DMwR","doBy","doParallel","doSNOW","dotCall64","downloader","dplyr","DPpackage","DRR","dse","DT","dtt","dtw","dygraphs","dynlm","e1071","earth","EbayesThresh","ebdbNet","ecm","edeaR","effects","ellipse","ellipsis","emmeans","emulator","energy","english","ensembleBMA","entropy","estimability","eulerr","EvalEst","evaluate","evd","evdbayes","eventdataR","exactLoglinTest","exactRankTests","expint","expm","extraDistr","extrafont","extrafontdb","extremevalues","ez","factoextra","FactoMineR","factorQR","fansi","faoutlier","farver","fastICA","fastmatch","fBasics","fdrtool","fGarch","fields","filehash","FinCal","fitdistrplus","flashClust","flexclust","flexmix","FME","fmsb","FNN","fontBitstreamVera","fontLiberation","fontquiver","forcats","foreach","forecast","forecastHybrid","foreign","formatR","formattable","Formula","fpc","fracdiff","fTrading","fUnitRoots","futile.logger","futile.options","gam","gamlr","gamlss","gamlss.data","gamlss.dist","gbm","gclus","gdalUtils","gdata","gdtools","gee","genalg","genetics","GenSA","geojson","geojsonio","geojsonlint","geoR","geoRglm","geosphere","GGally","ggalt","gganimate","ggcorrplot","ggdendro","ggeffects","ggforce","ggformula","ggfortify","ggimage","ggjoy","ggm","ggmap","ggmcmc","ggplot2","ggplot2movies","ggpmisc","ggpubr","ggQC","ggraph","ggrepel","ggridges","ggsci","ggsignif","ggsoccer","ggstance","ggtern","ggthemes","gistr","git2r","glasso","glmmBUGS","glmmTMB","glmnet","GlobalOptions","glue","gmodels","gmp","gnm","goftest","googleVis","gower","GPArotation","gplots","graphics","grDevices","grid","gridBase","gridExtra","gridGraphics","growcurves","grpreg","gss","gstat","gsubfn","gtable","gtools","gtrendsR","gWidgets","gWidgetsRGtk2","gWidgetstcltk","haplo.stats","hash","haven","hbsae","HDInterval","hdrcde","heatmaply","heavy","hexbin","hflights","HH","HI","highcharter","highr","HistData","Hmisc","hms","hoardr","HSAUR","htmlTable","htmltools","htmlwidgets","hts","httpuv","httr","huge","hunspell","IBrokers","ifultools","igraph","imager","influenceR","inline","intervals","inum","ipred","irlba","irr","ISOcodes","iterators","janeaustenr","janitor","jpeg","jqr","jsonlite","jsonvalidate","jtools","kableExtra","Kendall","kernlab","KernSmooth","KFKSDS","kinship2","kknn","klaR","km.ci","KMsurv","knitr","ks","labeling","labelled","laeken","Lahman")

I don't know what am I doing wrong here. Can you please help.

Thanks

Probably this is why

1 Like

some [emphasis added] of the consoles will not allow you to enter more, and amongst those which do some will silently discard the excess and some will use it as the start of the next line

It does work running from source window in RStudio, pasted into RStudio Console and pasted into Ubuntu konsole terminal emulator

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.