Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in addResourcePath(LIB$name, LIB$url) : object 'LIB' not found #322

Closed
koushiksaha89 opened this issue Jan 6, 2014 · 7 comments
Closed

Comments

@koushiksaha89
Copy link

i am using rCharts with shiny application. In the ui.R I am getting the above mentioned error. don't know why. where is my mistake. can you point me towards the right direction?

Here is the code for uni.R

library(shiny)
library(ggplot2)
library(rCharts)
shinyUI(pageWithSidebar(

  headerPanel(tags$body(tags$img(src="p_be_logo_main.gif", width="300px",align="right"),HTML('<span style="color:purple">Static Analysis Dash-Board</span>')),windowTitle="Static Analysis Reporting Tool"


    ),

  sidebarPanel(

    wellPanel(

      selectInput(inputId="filter",label="Select Filter",choices=c("Business-Unit"="bu","Country"="country","Division"="division"),selected=NULL,multiple=FALSE),
      conditionalPanel(
        condition = "input.tab == 'Feature Analysis'" ,

          checkboxInput(inputId="client", label="Client Features(Upto 9.0)"),
          checkboxInput(inputId="build",label="Build Features(Upto 9.0)"),
          checkboxInput(inputId="client10",label="Client Features(Upto 10.0)"),
          checkboxInput(inputId="build10",label="Build Features(Upto 10.0)")




        )
        )

      ),
    mainPanel(
      tabsetPanel(id="tab",
        tabPanel("Complexity Analysis",h4("Code Complexity"),plotOutput("compexity_chart")),
        tabPanel("Warning Alalysis",h4("Warning Details"),chartOutput("warning")),
        tabPanel("Fixed Warning Analysis",h4("Fixed Warning Analysis"),plotOutput("fixed_warning")),
        tabPanel("Churn Analysis",h4("Churn Details"),plotOutput("churn")),
        tabPanel("Feature Analysis",h4("Client & Build Feature Analysis"),plotOutput("feature"))
      )


      )

    )


  )
@ramnathv
Copy link
Owner

ramnathv commented Jan 6, 2014

chartOutput needs a second argument which is the name of the javascript library you are using for the plot. The error you are getting is on account of the absence of this argument in your chartOutput call.

@koushiksaha89
Copy link
Author

Thank you. rCharts is not properly documented. Can u do something about it.

NOTE: i am a beginner in R

Regards
Koushik Saha

-----Original Message-----
From: "Ramnath Vaidyanathan" notifications@github.com
Sent: ‎06-‎01-‎2014 04:51 PM
To: "ramnathv/rCharts" rCharts@noreply.github.com
Cc: "koushiksaha89" saha.koushik2007@gmail.com
Subject: Re: [rCharts] Error in addResourcePath(LIB$name, LIB$url) : object'LIB' not found (#322)

chartOutput needs a second argument which is the name of the javascript library you are using for the plot. The error you are getting is on account of the absence of this argument in your chartOutput call.

Reply to this email directly or view it on GitHub.

@ramnathv
Copy link
Owner

ramnathv commented Jan 6, 2014

rCharts is a relatively new project and under development. Documentation is on our to-do list.

@koushiksaha89
Copy link
Author

On 06-Jan-14 9:11 PM, Ramnath Vaidyanathan wrote:

rCharts is a relatively new project and under development.
Documentation is on our to-do list.


Reply to this email directly or view it on GitHub
#322 (comment).

i am interested to join the documentation part. let me know if you could
use me in any way

@ghost
Copy link

ghost commented Oct 1, 2014

Well, I find it strange, when I run my app locally, the shiny app renders fine and everything works properly. But when I'm trying to deploy my app on server, the process of uploading complete, however, I get error message:
ERROR: object 'LIB' not found.
I assume it is because of I use showOutput("myChart") instead of showOutput("myChart","nvd3"), but showOutput("myChart","nvd3") do not work locally.
So, the question is, what should I do to deploy my app on server?
I use rNVD3 library nPlot lineWithFocusChart.

@ramnathv
Copy link
Owner

ramnathv commented Oct 1, 2014

The rNVD3 package is no longer under development. All features have been rolled back into rCharts. I can confirm that showOutput("mychart", "nvd3") works with rCharts package loaded.

@ghost
Copy link

ghost commented Oct 4, 2014

Now works fine. Thank you.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants