Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
ANCHOVIEPIZZA
New Member

Problems with custom visual and R

Hey all,

 

I'm trying to do some forcasting and downloaded the custom visual 'Time Series Forecasting Chart'. I subsequently had to download R 3.4.3.

However, when i come to populate the chart i receive the following error. Does anyone have any clues as to why this has gone wrong?

Thank you!

-----------------------------------------------------

Feedback Type:

Frown (Error)

 

Timestamp:

2018-03-22T17:09:36.4916522Z

 

Local Time:

2018-03-22T17:09:36.4916522+00:00

 

Session ID:

b37894b6-dbcd-4dd5-acd2-a45c3344368d

 

Release:

March, 2018

 

Product Version:

2.56.5023.1021 (PBIDesktop) (x64)

 

Error Message:

R script error.

Loading required package: XML

Warning messages:

1: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :

there is no package called 'XML'

2: In libraryRequireInstall("XML") :

*** The package: 'XML' was not installed ***

Loading required package: htmlwidgets

Warning messages:

1: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :

there is no package called 'htmlwidgets'

2: In libraryRequireInstall("htmlwidgets") :

*** The package: 'htmlwidgets' was not installed ***

Loading required package: ggplot2

Warning messages:

1: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :

there is no package called 'ggplot2'

2: In libraryRequireInstall("ggplot2") :

*** The package: 'ggplot2' was not installed ***

Loading required package: plotly

Warning messages:

1: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :

there is no package called 'plotly'

2: In libraryRequireInstall("plotly") :

*** The package: 'plotly' was not installed ***

Loading required package: scales

Warning messages:

1: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :

there is no package called 'scales'

2: In libraryRequireInstall("scales") :

*** The package: 'scales' was not installed ***

Loading required package: forecast

Warning messages:

1: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :

there is no package called 'forecast'

2: In libraryRequireInstall("forecast") :

*** The package: 'forecast' was not installed ***

Loading required package: zoo

Warning messages:

1: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :

there is no package called 'zoo'

2: In libraryRequireInstall("zoo") :

*** The package: 'zoo' was not installed ***

Loading required package: ggplot2

Warning messages:

1: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :

there is no package called 'ggplot2'

2: In libraryRequireInstall("ggplot2") :

*** The package: 'ggplot2' was not installed ***

Error in ggplot() : could not find function "ggplot"

Execution halted

2 REPLIES 2
deldersveld
Resident Rockstar
Resident Rockstar

Custom visuals should attempt to install dependencies if they're not available. Not sure why that's not happening for you, but you can manually install the packages it requires by opening R and running the following "install.packages()" command to get all the packages the error message mentions.

 

install.packages("XML", "htmlwidgets", "ggplot2", "plotly", "scales", "forecast", "zoo")

 

ANCHOVIEPIZZA
New Member

Hey all,

 

I need to do some forecasting so downloaded the 'Time series forecasting chart' from the store. I then downloaded R version 3.4.3.0.

 

However, when i go to use the visual i receive the error below. Does anyone have any idea why?

 

Feedback Type:

Frown (Error)

 

Timestamp:

2018-03-22T17:09:36.4916522Z

 

Local Time:

2018-03-22T17:09:36.4916522+00:00

 

Session ID:

b37894b6-dbcd-4dd5-acd2-a45c3344368d

 

Release:

March, 2018

 

Product Version:

2.56.5023.1021 (PBIDesktop) (x64)

 

Error Message:

R script error.

Loading required package: XML

Warning messages:

1: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :

there is no package called 'XML'

2: In libraryRequireInstall("XML") :

*** The package: 'XML' was not installed ***

Loading required package: htmlwidgets

Warning messages:

1: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :

there is no package called 'htmlwidgets'

2: In libraryRequireInstall("htmlwidgets") :

*** The package: 'htmlwidgets' was not installed ***

Loading required package: ggplot2

Warning messages:

1: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :

there is no package called 'ggplot2'

2: In libraryRequireInstall("ggplot2") :

*** The package: 'ggplot2' was not installed ***

Loading required package: plotly

Warning messages:

1: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :

there is no package called 'plotly'

2: In libraryRequireInstall("plotly") :

*** The package: 'plotly' was not installed ***

Loading required package: scales

Warning messages:

1: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :

there is no package called 'scales'

2: In libraryRequireInstall("scales") :

*** The package: 'scales' was not installed ***

Loading required package: forecast

Warning messages:

1: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :

there is no package called 'forecast'

2: In libraryRequireInstall("forecast") :

*** The package: 'forecast' was not installed ***

Loading required package: zoo

Warning messages:

1: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :

there is no package called 'zoo'

2: In libraryRequireInstall("zoo") :

*** The package: 'zoo' was not installed ***

Loading required package: ggplot2

Warning messages:

1: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :

there is no package called 'ggplot2'

2: In libraryRequireInstall("ggplot2") :

*** The package: 'ggplot2' was not installed ***

Error in ggplot() : could not find function "ggplot"

Execution halted

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.