-
Notifications
You must be signed in to change notification settings - Fork 13
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
322 Notebook Executables #329
base: master
Are you sure you want to change the base?
Conversation
Modeled after parse_dependencies with a similar output, this is for review to see if it is in-line with specification
Per the specifications in Issue 308, the files are functional and ready to be put into a notebook.
Quick fix
Updating NAMESPACE to export the new functions and creating the Rmd, are the primary notes. The folder holding the sample project also is included locally, but uses the calculator project provided in Issue from Carlos
Most of the code review notes have been resolved, except for changing the file.path and descriptions. The notebook is currently being updated, but a preview on the proposed format is provided.
Having addressing most things, especially using file.path, the functions are functional and the notebook works.
Resolving comments received on the notebook.
- Refactored the understand_showcase.Rmd notebook to expect the use of the getters from R/config.R (i #230 contains the getter functions in R/config.R).
- The project configuration sections of a notebook was incorrectly using the project directory (kaiaulu/) as its working directory rather than the directory that it resides in (/vignettes/) as its working directory.
Currently non-functional, but a push for code review
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.
I left my feedback, though it may be best if @carlosparadis puts eyes on this before you make the changes.
The flow of this script makes it difficult to read. I think enough so that you would want to restructure this. Take a look at the other exec scripts. The logic should look something like this:
1. if "build" and "help":
- useful message to describe build
2. else if "build":
- load config file from args
- use getters to set params
- call the function
- write output to file
3. if "parse" and "help":
- useful message to describe build
4. else if "parse" and file:
- load config file from args
- use getters to set params
- call the function
- write output to file
5. same thing with parse and class
See inline for my other comments. Notably: do not check for dir exists in here as it will be error-prone. Mark is working on making sure the directory will exist.
Oh, also do not forget to merge the necessary functions for testing/running this into the branch.
exec/understand.R
Outdated
--file parses file-level dependencies | ||
" | ||
|
||
arguments <- docopt::docopt(doc, version = 'Kaiaulu 0.0.0.9600') |
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.
0.0.0.9700
exec/understand.R
Outdated
understand_folder <- "" | ||
code_language <- "" | ||
|
||
if (arguments[["build"]]) { |
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.
in this if block, load in the config file that you passed in as a parameter e.g. conf <- yaml::read_yaml(conf_path)
Will try to take a look. I was going to say to start by merging master into this PR and we go from there! |
From my understanding of the feedback received, updated the understand.R.
Simple push after viewing during 12/5/2024 meeting
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.
Please make sure other PRs you have worked on do not .idea folder and apply the requested changes.
Standardizing understand.R as well as uploading depends and linemetrics executables. Additional testing required on non-Windows devices needed.
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.
see comments posted in line for the PR Discussions
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.
Still has directory creation.
-Updated Functionality to encapsulate the third function "export" and the new parameter - Removed "description" tag from function
As directed by PR code review
…sailuh/kaiaulu into 322-creating-exec-for-notebooks
PR for all execs to be made from notebooks