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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors
Top Kudoed Authors