-
-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix package --as-cran #602
Conversation
Some of the examples are over 5 seconds to run. We could make synthetic_cdisc_data_latest <- synthetic_cdisc_data("latest")
ADSL <- synthetic_cdisc_data_latest$adsl
ADAE <- synthetic_cdisc_data_latest$adae
ADCM <- synthetic_cdisc_data_latest$adcm If so, can I keep the cdisc_dataset("ADSL", ADSL, code = 'ADSL <- synthetic_cdisc_data("latest")$adsl'),
cdisc_dataset("ADAE", ADAE, code = 'ADAE <- synthetic_cdisc_data("latest")$adae'), @nikolas-burkoff @mhallal1 |
Hi @arkadiuszbeer
I'm not sure what to do about the commented code. Both lines look okay to me. |
@donyunardi Yeah i think that you keep the code argument as technically it is the same code but we are pulling it once instead of twice before launching the app. |
hi @donyunardi
Examples in files
No. For bit operations and vector operation we could use |
Thanks @mhallal1 and @Polkas for the suggestion. @arkadiuszbeer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Additionally, I got this note:
Imports includes 26 non-default packages.
Importing from so many packages makes the package vulnerable to any of
them becoming unavailable. Move as many as possible to Suggests and
use conditionally.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So below is the time needed per example on main
, given this I dont think we should set check = FALSE
to all examples as it is important to check if these examples work or not. I suggest to set check = FALSE
only where needed.
EDIT: I can see that the different in time needed is remarkable between my machine and yours @donyunardi , the benchmark should be whatever CRAN is using which we can not test for now as our packages are not on CRAN yet :(
True. So in this case, I only removed the |
There's nothing we can do about this for now. |
Let us create an issue for this as cran will shout out because of the number of imports (similar to insightsengineering/teal.modules.general#456) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Let us create an issue for the number of imports as cran will complain about it (similar to insightsengineering/teal.modules.general#456)
related to https://github.com/insightsengineering/coredev-tasks/issues/334