.Rprofile in admiral gets changed by styler #2002
Replies: 5 comments 2 replies
-
Can we just style it and commit it?? |
Beta Was this translation helpful? Give feedback.
-
@bms63 I don't think it is that straight forward. If I understand correctly, the .Rprofile file in admiral comes from admiralci ... and it is not a direct copy. If I "fix" .Rprofile in admiral, it will soon be over-written by some process in admiralci. |
Beta Was this translation helpful? Give feedback.
-
@esimms999-gsk is this still a problem? |
Beta Was this translation helpful? Give feedback.
-
@manciniedoardo I just created a project with admiral, switched to the devel branch and ran styler::style_pkg(). Only .Rprofile gets changed. The lines changed by styler are a bit different now: Interesting that it wants to comment out that source() statement; anyone know what is up with that? I know that source() is frowned upon in packages, but would not expect styler to make such a bold move. This is not a huge problem ... but it is a bit messy in that styler being run on our production package should be clean, i.e. no changes. I think of it in the same way as if we ran our 697 tests and one of them failed and we said "yeah, we know about that, it isn't important". |
Beta Was this translation helpful? Give feedback.
-
Closing as fixed in latest propagation |
Beta Was this translation helpful? Give feedback.
-
In admiral@devel, the .Rprofile file in admiral gets changed by styler::style_pkg() and then shows up in the git pane. This is due to some blanks. I think that everything in admiral@devel should go through styler without changes; all pass except .Rprofile.
I think that admiral's .Rprofile comes from admiralci, but I have not figured out how. I expect a fix would need to be done somewhere in that process.
Beta Was this translation helpful? Give feedback.
All reactions