lars_dalby,

Currently my R session will crash if I call usethis::use_version() and choose one of the option and hit enter. Has anyone in the @rstats experienced this?

Clip showing a call to usethis::use_version() from RStudio which results in a crash of the R session

gaborcsardi,
@gaborcsardi@fosstodon.org avatar

@lars_dalby Does it crash from the command line? If yes, can you see a stack trace? Or can you try to debug(usethis::use_version) to see where the crash is?

lars_dalby,

@gaborcsardi Yes , it also crashes from a command line, but as you suggested I can see the stack trace, but it's too long to post here so I've added a comment to the issue I created earlier today https://github.com/r-lib/usethis/issues/1868

gaborcsardi, (edited )
@gaborcsardi@fosstodon.org avatar

@lars_dalby Can you show a stack trace from C? Run R like this:
R -q -d lldb
Then type 'run' + ENTER and run the R code. When it crashes, you'll be at the lldb prompt. Type 'bt' there, or 'bt 10' if 'bt' output is too long.

lars_dalby,

@gaborcsardi Sure and thank you for your time helping debugging this issue!
Again, I posted the results on the issue here: https://github.com/r-lib/usethis/issues/1868#issuecomment-1603949272

davidbraze,
@davidbraze@mstdn.social avatar

@lars_dalby @rstats

What happens if you explicitly pass the 'which' argument to use_version ?

lars_dalby,

@davidbraze @rstats If I set which = "minor" I still get a crash. Pretty strange, I can use e.g. use_r with no problems.

davidbraze,
@davidbraze@mstdn.social avatar

@lars_dalby @rstats

Does it crash with other values of 'which' ?

Whether yes or no, I might want to rule out something being off with either the formatting or the encoding of your DESCRIPTION file

Do you get similar crashes in all of your projects?

What happens if you create a brand new package (usethis::create_package) and then try use_version there?

lars_dalby,

@davidbraze @rstats Yep, crashes not matter what value is passed to which. Crashes on all projects and yes, also on a fresh package created using usethis::create_package(). So pretty much 💣 all around 🙂

tanho,

@davidbraze @lars_dalby

looks like your OS is linux, is it perhaps a chown/chmod issue on the DESCRIPTION file?

  • All
  • Subscribed
  • Moderated
  • Favorites
  • rstats@a.gup.pe
  • DreamBathrooms
  • mdbf
  • ethstaker
  • magazineikmin
  • GTA5RPClips
  • rosin
  • thenastyranch
  • Youngstown
  • InstantRegret
  • slotface
  • osvaldo12
  • kavyap
  • khanakhh
  • Durango
  • megavids
  • everett
  • cisconetworking
  • normalnudes
  • tester
  • ngwrru68w68
  • cubers
  • modclub
  • tacticalgear
  • provamag3
  • Leos
  • anitta
  • JUstTest
  • lostlight
  • All magazines