pak vs .Rbuildignore in Package Building - Am I Missing Something? #9794
Replies: 2 comments 5 replies
-
|
Just so we understand each other: can you find Or are you seeing evidence of So before we go any further, I'd like to know exactly what it is that you're noticing around unhappy handling of |
Beta Was this translation helpful? Give feedback.
-
|
Jenny's questions for you are very relevant and important, to get unstuck. I also want to highlight that we have heard from multiple folks that our current use of pak for this command is causing problems in #2955. Feel free to add a 👍 to that issue if you think it's relevant for you! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Question: pak vs .Rbuildignore in Package Building - Am I Missing Something?
Observation: I've noticed that Positron's default package build command (Ctrl+Shift+B) seems to use
pak::local_install(), and I'm having issues where files that I expect to be excluded via.Rbuildignoreappear to be included in my package. However, I'm not entirely sure if this is actually a pak issue or if I'm doing something wrong.What I Think I'm Seeing:
.Rbuildignorepatterns don't seem to be respected when using Ctrl+Shift+BSpecific Example:
I discovered a large file in my
.Rproj.userdirectory that appeared to be getting built into my package. My.Rbuildignorecontains the line:which I expected would exclude the entire
.Rproj.userdirectory, but it seems like pak might not be respecting this pattern.Questions:
pak::local_install()respect.Rbuildignoreby default, or is this expected behavior?.Rbuildignoreincorrectly for pak?Context: Coming from RStudio where package building typically used devtools/R CMD build, so I might be expecting behavior that isn't intended in Positron.
Would appreciate any guidance on whether this is user error on my part or if others have seen similar behavior!
Beta Was this translation helpful? Give feedback.
All reactions