Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

renv::init() error with R version 3.6.3 #11288

Open
2 of 4 tasks
Jain-Paridhi opened this issue May 25, 2022 · 2 comments
Open
2 of 4 tasks

renv::init() error with R version 3.6.3 #11288

Jain-Paridhi opened this issue May 25, 2022 · 2 comments

Comments

@Jain-Paridhi
Copy link

@Jain-Paridhi Jain-Paridhi commented May 25, 2022

System details

RStudio Edition : Desktop
RStudio Version : 1.4.1717
OS Version      : Windows 10 Enterprise
R Version       :  3.6.3

Steps to reproduce the problem

  1. Created a new project in RStudio
  2. Added a simple file with only one command, 'library(tidyverse)' and saved it in the project.
  3. Run 'renv::init()' in the project dir. Then I get the error.

Describe the problem in detail

I was trying to create r environment for my R project. When I run renv::init(), I get the following error:
image

Describe the behavior you expected

The environment should be created. All these steps worked for R version 4.1.0. Version 4.1.2 gave me the same error.

I'm not able to find the right resource or help.

  • I have read the guide for submitting good bug reports.
  • I have installed the latest version of RStudio, and confirmed that the issue still persists.
  • If I am reporting an RStudio crash, I have included a diagnostics report.
  • I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
@kevinushey
Copy link
Contributor

@kevinushey kevinushey commented May 25, 2022

Can you try running the following:

trace(renv:::renv_file_link, quote({
  writeLines(sprintf("'Linking: %s' => '%s'", source, target))
}))

trace(renv:::renv_file_copy, quote({
  writeLines(sprintf("'Copying: %s' => '%s'", source, target))
}))

options(error = rlang::trace_back)
renv::init()

This should hopefully give us a bit more diagnostic output, and tell us which package is failing to copy into the cache.

@kevinushey
Copy link
Contributor

@kevinushey kevinushey commented Jun 3, 2022

@Jain-Paridhi, can you share an update?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants