You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Basically, construct_design_code() is using getSrcref() to grab the source code of the designer functions in the package. That's great and works fine locally because we can set the project to run R CMD INSTALL --no-multiarch --with-keep.source DesignLibrary by default.
The problem arises in two instances:
I don't think that R CMD CHECK has keep.source as an option, so our checks will always break. Is there a way to set global variables when the check runs, before the package is installed?
When users don't specify that source should be kept when installing, the package breaks massively.
This breaks bigly:
@nfultz is there a way to ensure that keep.source is always true when the package is built? Can we set R_KEEP_PKG_SOURCE=yes as a side effect before installing the package on the user's computer, for example?
The text was updated successfully, but these errors were encountered:
@nfultz has outlined the problem very nicely here
Basically,
construct_design_code()
is usinggetSrcref()
to grab the source code of the designer functions in the package. That's great and works fine locally because we can set the project to runR CMD INSTALL --no-multiarch --with-keep.source DesignLibrary
by default.The problem arises in two instances:
This breaks bigly:
@nfultz is there a way to ensure that keep.source is always true when the package is built? Can we set
R_KEEP_PKG_SOURCE=yes
as a side effect before installing the package on the user's computer, for example?The text was updated successfully, but these errors were encountered: