Get this error when deploying app to Shiny server

83 views
Skip to first unread message

Subhash Mantha

unread,
Jun 23, 2014, 11:43:08 AM6/23/14
to shinyap...@googlegroups.com
Iam a Shiny and R newbie.

Get the following Errors
Error in paste(rep_len("#", r), collapse = "") : 
  could not find function "rep_len"
In addition: Warning messages:
1: In readLines(file) :
  incomplete final line found on 'C:\Users\smantha\Downloads\Shiny/Server.R'
2: In readLines(file) :
  incomplete final line found on 'C:\Users\smantha\Downloads\Shiny/UI.R'

only place where I use paste function is
if (is.null(y))
      {expr<-paste(input$depvar,1,sep='~')}
      else {
        v2<-gsub(", ","+",toString(input$IndepVar))
        expr<-paste(input$depvar,v2,sep='~')
      }
depvar and IndepVar are null to begin with and the values are parsed into them only when a file is read.
Thank you,
Subhash

Subhash Mantha

unread,
Jun 23, 2014, 12:40:35 PM6/23/14
to shinyap...@googlegroups.com
attached are the files that are used in the app.
Server.R
UI.R

Subhash Mantha

unread,
Jun 23, 2014, 2:06:57 PM6/23/14
to shinyap...@googlegroups.com
Full error message is as following

Uploading application bundle...DONE
Deploying application: 13529...
Waiting for task: 293239
  error: Parsing manifest
Error in paste(rep_len("#", r), collapse = "") : 
  could not find function "rep_len"


On Monday, June 23, 2014 10:43:08 AM UTC-5, Subhash Mantha wrote:

Andy Kipp

unread,
Jun 24, 2014, 3:11:19 PM6/24/14
to Subhash Mantha, shinyap...@googlegroups.com
What version are R are you running?

Can you run 

sessionInfo()

and paste the output here?

Thanks

-Andy


--
You received this message because you are subscribed to the Google Groups "ShinyApps Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shinyapps-use...@googlegroups.com.
To post to this group, send email to shinyap...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shinyapps-users/e4d2b0c9-5262-4966-b966-a11106172a87%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Subhash Mantha

unread,
Jun 24, 2014, 6:26:32 PM6/24/14
to shinyap...@googlegroups.com, subhas...@gmail.com
R version 2.15.3 (2013-03-01)
Platform: x86_64-w64-mingw32/x64 (64-bit)

locale:
[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252    LC_MONETARY=English_United States.1252 LC_NUMERIC=C                          
[5] LC_TIME=English_United States.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
 [1] car_2.0-19         caret_6.0-24       codetools_0.2-8    colorspace_1.2-4   dichromat_2.0-0    digest_0.6.4       foreach_1.4.1      ggplot2_0.9.3.1   
 [9] grid_2.15.3        gtable_0.1.2       iterators_1.0.6    labeling_0.2       lattice_0.20-29    MASS_7.3-23        munsell_0.4.2      nnet_7.3-5        
[17] plyr_1.8           proto_0.3-10       RColorBrewer_1.0-5 reshape2_1.2.2     rpart_4.1-0        scales_0.2.3       stringr_0.6.2      tools_2.15.3  

Subhash Mantha

unread,
Jun 24, 2014, 6:28:01 PM6/24/14
to shinyap...@googlegroups.com, subhas...@gmail.com
R version 2.15.3 (2013-03-01)
Platform: x86_64-w64-mingw32/x64 (64-bit)

locale:
[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252    LC_MONETARY=English_United States.1252 LC_NUMERIC=C                          
[5] LC_TIME=English_United States.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] shinyapps_0.3.54 devtools_1.4.1  

loaded via a namespace (and not attached):
 [1] car_2.0-19         caret_6.0-24       codetools_0.2-8    colorspace_1.2-4   dichromat_2.0-0    digest_0.6.4       evaluate_0.5.3     foreach_1.4.1     
 [9] ggplot2_0.9.3.1    grid_2.15.3        gtable_0.1.2       httr_0.2           iterators_1.0.6    labeling_0.2       lattice_0.20-29    MASS_7.3-23       
[17] memoise_0.1        munsell_0.4.2      nnet_7.3-5         parallel_2.15.3    plyr_1.8           proto_0.3-10       RColorBrewer_1.0-5 RCurl_1.95-4.1    
[25] reshape2_1.2.2     rpart_4.1-0        scales_0.2.3       stringr_0.6.2      tools_2.15.3       whisker_0.3-2     
> 

On Tuesday, June 24, 2014 2:11:19 PM UTC-5, Andy Kipp wrote:

Andy Kipp

unread,
Jun 24, 2014, 6:53:29 PM6/24/14
to Subhash Mantha, shinyap...@googlegroups.com
I would try upgrading to R >= 3.0.0 and see if that helps. We're no longer supporting ShinyApps on older versions on R.

-Andy


Subhash Mantha

unread,
Jun 25, 2014, 10:57:51 AM6/25/14
to shinyap...@googlegroups.com, subhas...@gmail.com
Thank you Andy,
Changing the version to 3.0 worked. Thanks for your help.
Reply all
Reply to author
Forward
0 new messages