I am having troubles in bring in the symbol := from data.table into mlflow library.
Basically I am building a docker container to serve machine learning models.
- the docker is based off rocker/r-ver:4.1.3
- the ml model is created by R crate function, this model predict function is written in R and uses data.table, including operator :=
- the docker is running to serve API request and use ml model to predict a response. during the ml model predict function, i had error: Invalid Request. could not find function ":="
I have read the references, tried all of them but none worked.
Basically I am using remotes to install mlflow locally, instead of devtools.
- I clone the mlflow repo to local mlflow-debug
- add data.table (>= 1.9.6), in the depends section of the DESCRIPTION file
- turn on building dependencies by set dependencies and build to TRUE in remotes::install_local, see below dockerfile
FROM rocker/r-ver:4.1.3
blah blash
RUN pip install mlflow==1.24 protobuf==3.20.0
RUN Rscript -e 'install.packages(c("glmnet", "carrier", "data.table", "R.filesets"))'
COPY mlflow-debug mlflow-debug
RUN Rscript -e 'install.packages("remotes")'
RUN Rscript -e 'remotes::install_local(\
path="mlflow-debug/mlflow/R/mlflow",\
dependencies = TRUE,\
build = TRUE,\
upgrade="never"\
)'
At this point, I suspect that the issue is not bringing in the := symbol into mlflow library.
Any ideas or help will be welcome, thanks a lot!
references: