[R-pkg-team] Bug#1061828: r-cran-plotly: Can't create any plots
Andreas Tille
andreas at an3as.eu
Tue Jan 30 18:08:10 GMT 2024
Control: tags -1 help
Hi Przemyslaw,
thanks a lot for your bug report. Its a schame that you have issues
with the packaged version of plotly.
Am Mon, Jan 29, 2024 at 09:36:55PM +0100 schrieb Przemyslaw Kopa:
> Tried a simple scatterplot example:
>
> library(plotly)
> plot_ly(data = iris, x = ~Sepal.Length, y = ~Petal.Length)
>
> * What was the outcome of this action?
>
> Web browser opened with an empty page instead of a plot and there
> were many JS errors in browser's console. Plotly.js version that comes
> bundled with r-cran-plotly is very old, which is probably the cause of
> those errors. Tried also 4.10.4 from testing - same result.
I confirm I can reproduce the problem.
When checking the html page source I get
...
<script src="lib/htmlwidgets-1.6.4/htmlwidgets.js"></script>
<script src="lib/plotly-binding-4.10.4/plotly.js"></script>
<script src="lib/typedarray-0.1/typedarray.min.js"></script>
<script src="lib/jquery-3.5.1/jquery.min.js"></script>
<link href="lib/crosstalk-1.2.1/css/crosstalk.min.css" rel="stylesheet" />
<script src="lib/crosstalk-1.2.1/js/crosstalk.min.js"></script>
<link href="lib/plotly-htmlwidgets-css-2.11.1/plotly-htmlwidgets.css" rel="stylesheet" />
<script src="lib/plotly-main-2.11.1/plotly-latest.min.js"></script>
...
So its not really sure what actual package is responsible for the
problem which ca also be caused by crosstalk, htmlwidgets, a non-fitting
jquery etc.
I've checked the browser console and can see things like
NS_ERROR_NOT_IMPLEMENTED: Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIAppStartup.secondsSinceLastOSRestart]
_collectStartupConditionsTelemetry resource:///modules/BrowserGlue.sys.mjs:1609
BG__onFirstWindowLoaded resource:///modules/BrowserGlue.sys.mjs:1717
BG_observe resource:///modules/BrowserGlue.sys.mjs:962
_delayedStartup chrome://browser/content/browser.js:2076
update.locale file doesn't exist in either the application or GRE directories UpdateUtils.sys.mjs:135:13
getLocale resource://gre/modules/UpdateUtils.sys.mjs:135
Given tab is not restoring. SessionStore.sys.mjs:6035:15
_resetLocalTabRestoringState resource:///modules/sessionstore/SessionStore.sys.mjs:6035
_restoreTabContentComplete resource:///modules/sessionstore/SessionStore.sys.mjs:6597
_restoreTabContent resource:///modules/sessionstore/SessionStore.sys.mjs:6468
I admit for the moment I do not have any idea and no clue what this
might mean. Any help would be welcome.
Kind regards
Andreas.
--
http://fam-tille.de
More information about the R-pkg-team
mailing list