Open
Description
Hi,
I'm playing around with some optimization code in R, and tried to run this snippet of code (after installing the corresponding packets):
const rCode = "
library(ggplot2)
library(ggthemes)
library(dplyr)
library(readxl)
library(plyr)
library(deaR)
library(ggridges)
ccr <- deaR::Fortune500
ccr_f500 <- read_data(ccr, ni= 3, no= 2, dmus = 1, inputs = 2:4, outputs = 5:6)
result_ccr_f500 <- model_basic(ccr_f500, orientation = "io", rts = "crs", dmu_eval = 1:15, dmu_ref = 1:15)
";
const result = await webR.evalR(rCode);
console.log(await result.toJs());
Everything goes well up to the last line. The error returned by webR is:
call_indirect to a null table entry (evaluating 'qe(m,i)')
In the javascript console, the following error is shown
Failed to load resource: the server responded with a status of 403
Apparently https://webr.r-wasm.org/v0.4.4/libmyBLAS.so
cannot be found.
Below is the HTTP Request/Response
:method: GET
:scheme: https
:authority: webr.r-wasm.org
:path: /v0.4.4/libmyBLAS.so
Accept: */*
Sec-Fetch-Site: cross-site
Origin: http://localhost:5173
Sec-Fetch-Mode: cors
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.5 Safari/605.1.15
Accept-Language: en-GB,en;q=0.9
Accept-Encoding: gzip, deflate, br
Sec-Fetch-Dest: empty
Priority: u=3, i
How to fix this?
Metadata
Metadata
Assignees
Labels
No labels