Running examples in 'plotly-Ex.R' failed
The error occurred in:


R Under development (unstable) (2017-07-09 r72907) -- "Unsuffered Consequences"
Copyright (C) 2017 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

  Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> pkgname <- "plotly"
> source(file.path(R.home("share"), "R", "examples-header.R"))
> options(warn = 1)
> options(pager = "console")
> library('plotly')
Loading required package: ggplot2
Warning: S3 methods 'fullseq.Date', 'fullseq.POSIXt', 'fullseq.numeric', 'print.trans', 'rescale.NULL', 'rescale.Date', 'rescale.POSIXt', 'rescale.integer64', 'rescale.logical', 'rescale.numeric', 'rescale_mid.NULL', 'rescale_mid.Date', 'rescale_mid.POSIXt', 'rescale_mid.integer64', 'rescale_mid.logical', 'rescale_mid.numeric' were declared in NAMESPACE but not found
Error: package or namespace load failed for 'ggplot2' in namespaceExport(ns, exports):
 undefined exports: ContinuousRange, DiscreteRange, abs_area, alpha, area_pal, as.trans, asn_trans, atanh_trans, boxcox_trans, brewer_pal, cbreaks, censor, col2hcl, col_bin, col_factor, col_numeric, col_quantile, colour_ramp, comma, comma_format, cscale, date_breaks, date_format, date_trans, dichromat_pal, discard, div_gradient_pal, dollar, dollar_format, dscale, exp_trans, expand_range, extended_breaks, format_format, fullseq, gradient_n_pal, grey_pal, hms_trans, hue_pal, identity_pal, identity_trans, is.trans, linetype_pal, log10_trans, log1p_trans, log2_trans, log_breaks, log_trans, logit_trans, manual_pal, math_format, muted, ordinal, ordinal_format, parse_format, percent, percent_format, pretty_breaks, probability_trans, probit_trans, reciprocal_trans, regular_minor_breaks, rescale, rescale_max, rescale_mid, rescale_none, rescale_pal, reverse_trans, scientific, scientific_format, seq_gradient_pal, shape_pal, show_col, sqrt_trans, squish, squish_infinite, time_trans, train_continuous, train_discrete, trans_breaks, trans_format, trans_new, trans_range, unit_format, viridis_pal, wrap_format, zero_range
Error: package 'ggplot2' could not be loaded
Execution halted