8000 Failed to parse 'renv.lock' · Issue #2091 · rstudio/renv · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Failed to parse 'renv.lock' #2091
Open
Open
@KKamel67

Description

@KKamel67

I tried to use the version 1.1.1 version of the renv package. After executing the renv::snapshot() command, when I open the project I get the following message :

Error in (function (err) : Failed to parse 'renv.lock':
input string 1 is invalid UTF-8

Traceback (most recent calls last):
20: source("renv/activate.R")
19: withVisible(eval(ei, envir))
18: eval(ei, envir)
17: eval(ei, envir)
16: local(...) at activate.R#2
15: eval.parent(substitute(eval(quote(expr), envir)))
14: eval(expr, p)
13: eval(expr, p)
12: eval(quote(...), new.env())
11: eval(quote(...), new.env())
10: renv_bootstrap_exec(project, libpath, version) at activate.R#1309
 9: if (!renv_bootstrap_load(project, libpath, version))
      renv_bootstrap_run(project, libpath, version) at activate.R#1139
 8: renv::load(project) at activate.R#994
 7: renv_lockfile_load(project)
 6: renv_lockfile_read(path)
 5: withCallingHandlers(json <- renv_json_read(text = contents), 
        error = function(err) {
            stop("Failed to parse 'renv.lock':\n", conditionMessage(err))
        })
 4: renv_json_read(text = contents)
 3: stop(json)
 2: <condition-handler>(...)
 1: stop("Failed to parse 'renv.lock':\n", conditionMessage(err))

Here are the session information :

R version 4.1.0 (2021-05-18)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows Server x64 (build 14393)

Matrix products: default

locale:
[1] LC_COLLATE=French_France.1252  LC_CTYPE=French_France.1252    LC_MONETARY=French_France.1252 LC_NUMERIC=C                  
[5] LC_TIME=French_France.1252    

attached base packages:
[1] stats     graphics  grDevices datasets  utils     methods   base     

loaded via a namespace (and not attached):
[1] compiler_4.1.0 tools_4.1.0    renv_1.1.1 

In the attached file, you can find the content of the renv.lock file.

renv_lock.txt

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

      0