Code Monkey home page Code Monkey logo

Comments (4)

gaborcsardi avatar gaborcsardi commented on August 27, 2024
  • Authors@R messed up by normalize()

That's subjective. :) I think it looks nice. Although the missing key and the empty line is a big problem indeed. I wonder how I missed this.....

    c(person(given = "Hadley",
             family = "Wickham",
             role = c("aut", "cre", "cph"),
             email = "[email protected]"),
      person(given = "Peter",
             family = "Danenberg",
             role = c("aut", "cph"),
             email = "[email protected]"),
      person(given = "Manuel",
             family = "Eugster",
             role = c("aut", "cph")),
      person(given = "RStudio",
             role = "cph"))
  • message suggests using to_authors_at_r() function which doesn't seem to exist

Yes, I wanted to write it, but gave up in the end. Too hard to parse the field(s) for too little gain. I'll just remove the message for now I think.

  • description::description$new("!new")$get_author() returns NULL but shouldn't

Yes, probably !new should create a file with Authors@R. TBH I hate Authors@R, because it looks so different than the rest of the file, but I guess that's the standard now.

NB: Have you tried as.person.character() for parsing Author and Maintainer fields?

Hmmm. In 3.2.4 there is no such function, but as.person.character might do the trick. I missed that.

from desc.

krlmlr avatar krlmlr commented on August 27, 2024

It's as.person.default(). The formatting for a single Author@R looked odd to me.

from desc.

gaborcsardi avatar gaborcsardi commented on August 27, 2024

It's as.person.default().

That's it. I tried it, it messes up things even with simple inputs. So people can convert to Authors@R manually I guess.

The formatting for a single Author@R looked odd to me.

Well, it is the standard formatting, I just use format(). Since we don't ever reformat, unless the user tesll us to, I think this is OK. It is different from the Hadley style, but I think it looks OK.

from desc.

gaborcsardi avatar gaborcsardi commented on August 27, 2024

The rest I fixed I believe. Thanks!

from desc.

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.