emjonaitis,
@emjonaitis@mathstodon.xyz avatar

Looking for beginner resources for R package development. Specifically, I've got a package where I need to make some moderately large changes in a function, and I need to keep the package usable in its current stage on my machine while I develop and test the new version. How does one do this? I don't think this is a git question, I think this is an R question.

urswilke,
@urswilke@fosstodon.org avatar

@emjonaitis

I also like the approach to develop new functionality directly in the debugger where it happens. Like @tylermorganwall suggested but not with functions but rather new dev objects that can be successively developed and compared next to the original ones.

As soon as you have what you want you can then move the new code to its own functions etc. and finally remove and replace the old functionality when everything works

brodriguesco,
@brodriguesco@fosstodon.org avatar

@emjonaitis the version of the package you installed is independent from the version you develop. As long as you don't explicitly install the dev version, it won't affect the version installed. Use unit tests to see if nothing breaks, and once you're done and confident, you can install the newly developed version of your package.

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