class_docstr: Flavor backend implementation for the generic R models.
  Predict and serve locally models with 'crate' flavor.
class_docstr_tok: ["Flavor","backend","implementation","for","the","generic","R","models",".","Predict","and","serve","locally","models","with","'crate","'","flavor","."]
code: def can_score_model(self):
      # `Rscript --version` writes to stderr in R < 4.2.0 but stdout in R >= 4.2.0.
      process = subprocess.Popen(
          ["Rscript", "--version"],
          close_fds=True,
          stdout=subprocess.PIPE,
          stderr=subprocess.STDOUT,
      )
      stdout, _ = process.communicate()
      if process.wait() != 0:
          return False
  
      version = self.version_pattern.search(stdout.decode("utf-8"))
      if not version:
          return False
      version = [int(x) for x in version.group(1).split(".")]
      return version[0] > 3 or version[0] == 3 and version[1] >= 3
  
file_path: mlflow/mlflow/rfunc/backend.py
imports: import logging
  import os
  import re
  import subprocess
  import sys
  from mlflow.exceptions import MlflowException
  from mlflow.models import FlavorBackend
  from mlflow.tracking.artifact_utils import _download_artifact_from_uri
  from mlflow.utils.string_utils import quote
label_desc: Use image node_id 5 for calling the RFuncBackend obj's underlying member method code with example usage: obj.can_score_model() and returns: unknown, False, False