Code Monkey home page Code Monkey logo

Comments (3)

ClaudioZandonella avatar ClaudioZandonella commented on June 5, 2024

Hi @maelle,

I use renv more out of habit than for any other specific reason.
I use renv in all my projects to track package dependencies. Also when developing packages I like having the possibility to control all the dependencies installed.

You are right that renv is not commonly used when developing R-packages. Actually, in this case, renv may also be harmful as testing the package functions should not depend on a specific environment.

To avoid this problem, I run all tests on GitHub actions without using renv. In this way, the latest package versions are used [or at least this is my understanding].

Do you see any other inconveniences of using renv when developing R-packages? Or do you suggest other workflows?

from trackdown.

maelle avatar maelle commented on June 5, 2024

👋 @ClaudioZandonella!

As an external contributor, I must say I first deactivated renv before contributing. 😅 I can't remember which package I wanted to use was missing, maybe it was devtools? So it was just easier for me to use my local library.

To install all the dependencies needed for a package project, I run pak::pak() which works well and is easy to remember.

If you keep using renv, as it is not common for package development maybe CONTRIBUTING.md should mention it?

from trackdown.

maelle avatar maelle commented on June 5, 2024

Another comment on the project setup. For renv and other things there is an .Rprofile in this repository, which masks my user level .Rprofile (that I use for loading {reprex}, {devtools}, {gert}).

Would you consider adding

if (file.exists('~/.Rprofile')) {
  base::sys.source('~/.Rprofile', envir = environment())
}

to it so that both user-level and project-level Rprofiles are loaded? (a trick I got from https://bookdown.org/yihui/blogdown/global-options.html)

from trackdown.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.