Skip to content
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

Open
wants to merge 24 commits into
base: master
Choose a base branch
from
Open

Conversation

RavenMarQ
Copy link
Collaborator

PR for all execs to be made from notebooks

RavenMarQ and others added 16 commits September 12, 2024 10:28
This is to test Committing and PR
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
@RavenMarQ RavenMarQ linked an issue Nov 12, 2024 that may be closed by this pull request
12 tasks
Copy link
Collaborator

@daomcgill daomcgill left a 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 Show resolved Hide resolved
--file parses file-level dependencies
"

arguments <- docopt::docopt(doc, version = 'Kaiaulu 0.0.0.9600')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0.0.0.9700

understand_folder <- ""
code_language <- ""

if (arguments[["build"]]) {
Copy link
Collaborator

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)

exec/understand.R Outdated Show resolved Hide resolved
exec/understand.R Show resolved Hide resolved
exec/understand.R Show resolved Hide resolved
exec/understand.R Outdated Show resolved Hide resolved
exec/understand.R Outdated Show resolved Hide resolved
exec/understand.R Outdated Show resolved Hide resolved
exec/understand.R Outdated Show resolved Hide resolved
@carlosparadis
Copy link
Member

Will try to take a look. I was going to say to start by merging master into this PR and we go from there!

@RavenMarQ RavenMarQ self-assigned this Nov 12, 2024
From my understanding of the feedback received, updated the understand.R.
Simple push after viewing during 12/5/2024 meeting
Copy link
Member

@carlosparadis carlosparadis left a 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.

.idea/.gitignore Outdated Show resolved Hide resolved
.idea/kaiaulu.iml Outdated Show resolved Hide resolved
exec/understand.R Outdated Show resolved Hide resolved
exec/understand.R Outdated Show resolved Hide resolved
R/src.R Outdated Show resolved Hide resolved
Standardizing understand.R as well as uploading depends and linemetrics executables. Additional testing required on non-Windows devices needed.
Copy link
Collaborator

@daomcgill daomcgill left a 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

exec/understand.R Show resolved Hide resolved
Copy link
Collaborator

@daomcgill daomcgill left a 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.

RavenMarQ and others added 2 commits December 10, 2024 22:31
-Updated Functionality to encapsulate the third function "export" and the new parameter
- Removed "description" tag from function
As directed by PR code review
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Creating /exec for notebooks
4 participants