Skip to content

Imported data files and outputs files are not accurate #289

@jmarandet

Description

@jmarandet

Hi,

I have a script that import data files and exports data files.
For import I am using :

The example code is really simple :

library(jsonlite)
param <- read_json("/json/param.json")
datafile <- "/input.txt"
data <- suppressWarnings(read.csv2(datafile, header = FALSE))

fileConn<-file("/output.txt")
writeLines( as.character("string") , fileConn)
close(fileConn)
write_json(param , "/json/values.json", pretty = TRUE)

The R code analyser doesn't seems to recognize the JSON input, the "Imported Data" menu remains blank
The same if I use the jsonlite::fromJSON

And the two outputs are also not listed.

Image

Is that normal or there any reason for this ?
Maybe a configuration or something that I may done the wrong way, or did I missunderstood the usecase ?


flowR version: 2.2.15
Extension version: 0.5.14 (Production mode)
VS Code version: 1.102.3 (web false)
Session: internal (active)
OS: linux
Extension config:

{
  "server": {
    "host": "localhost",
    "port": 1042,
    "autoConnect": false,
    "connectionType": "auto"
  },
  "r": {
    "executable": "/usr/local/bin/R",
    "engine": "tree-sitter"
  },
  "style": {
    "sliceOpacity": 0.25,
    "sliceDisplay": "text",
    "tokenBackgroundColor": "rgba(0, 127, 0, 0.5)",
    "onlyHighlightActiveSelection": false,
    "mermaidMaxTextLength": 500000
  },
  "tree-sitter": {
    "timeout": 60000,
    "lax": true
  },
  "slice": {
    "automaticReconstruct": true,
    "revisitThreshold": 12
  },
  "dependencyView": {
    "autoReveal": 10,
    "updateType": "adaptive",
    "updateInterval": 10,
    "adaptiveCharacterLimit": 5000,
    "cacheLimit": 5,
    "keepOnError": true,
    "query": {
      "ignoreDefaults": false,
      "overrides": {
        "libraryFunctions": [],
        "sourceFunctions": [],
        "readFunctions": [],
        "writeFunctions": []
      }
    }
  },
  "verboseLog": false,
  "debug": {
    "flowrLogLevel": "Error"
  },
  "errorMessage": {
    "Timer": 5000
  },
  "config": {
    "ignoreSourceCalls": false,
    "solver": {
      "variableHandling": "alias",
      "pointerTracking": false,
      "resolveSource": {
        "ignoreCapitalization": true,
        "inferWorkingDirectory": "active-script",
        "searchPath": [],
        "dropPaths": "once"
      }
    },
    "overwriteBuiltIns": {
      "loadDefaults": true,
      "definitions": []
    }
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions