Code Monkey home page Code Monkey logo

Comments (7)

katrinleinweber avatar katrinleinweber commented on July 23, 2024

Hello :-) Is there a preference in the ROpenSci community whether to include the .Rproj or not?

from pkgreviewr.

annakrystalli avatar annakrystalli commented on July 23, 2024

Het @katrinleinweber, I think it can vary for packages hosted on github. They're not included in the build but might exist in the source code. Anyroad, given the source code will always be a package, I've switch the function to get package metadata from usethis:::project_data to usethis:::package_data which I believe works off the DESCRIPTION file (5557d93),

from pkgreviewr.

katrinleinweber avatar katrinleinweber commented on July 23, 2024

I was trying to lead up to the suggestion to prefer including it in the source code ;-)

Reason: a contributor's RStudio instance can pull out some useful style infos that harmonise collaboration. IMHO, pkgreviewr could spit out a warning if no .Rproj is present.

from pkgreviewr.

annakrystalli avatar annakrystalli commented on July 23, 2024

Ah, I see. what sort of information were you thinking could be useful. In general the idea is that you use pkgreviewer to test the package under review locally in a separate project. So i don't think whether the package has an .rproj file or not matters too much atm?

from pkgreviewr.

katrinleinweber avatar katrinleinweber commented on July 23, 2024

Not for the review itself, but if pkgreviewer flagged a missing .Rproj, the reviewer and submitter could pre-emptively help future contributors. Doubling clicking the file opens the project's working directory in RStudio immediately (no setwd() necessary), and RStudio can immediately use the correct intendation for example. That's not super important, but worth a small flag / note.

from pkgreviewr.

katrinleinweber avatar katrinleinweber commented on July 23, 2024

PS: See also rstudio/rstudio#1711. .Rproj is admittedly not the best file to ensure equal settings for contributors, because it mixes the rather personal Workspace & History settings in with Space/Tab settings etc. Once RStudio supports .editorconfig, this issue's topic would shift to that ;-)

from pkgreviewr.

annakrystalli avatar annakrystalli commented on July 23, 2024

OK! I see what you are suggesting now! I guess it goes back to the original question about an rOpenSci review preference. Currently, as I understand it, it's not something that's checked at review. Maybe it should? Any thoughts @maelle ?

from pkgreviewr.

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.