Comments (9)
I think I might have fixed it. In #121 all but 2 files compiled successfully. At least it's not a systemic error now. Please let me know if it looks good to you.
from r.
I tried your changes in my fork, and can confirm that all but 2 scripts now run successfully and generate output files in the documentation directory.
The two remaining errors I see are these:
processing file: ../classification_algorithms/decision_tree.Rmd
1/3
2/3 [unnamed-chunk-1]
3/3
output file: decision_tree.md
Error compiling: Error in parse(text = x, keep.source = TRUE): <text>:59:45: unexpected symbol
58:
59: x <- data[,!(names(data) %in% drop_columns)]y
^
processing file: ../regression_algorithms/ann.Rmd
1/3
2/3 [unnamed-chunk-1]
3/3
output file: ann.md
Error compiling: Error in parse(text = x, keep.source = TRUE): <text>:59:45: unexpected symbol
58:
59: x <- data[,!(names(data) %in% drop_columns)]y
^
But I have no idea what causes them or how to fix 😔
But anyway, nice to see some progress!
from r.
Hi, thanks for reporting that! Do you want to make a PR to fix that or somebody else can pick up this issue? I think it should be safe to just remove older files.
from r.
Sure I can do that! What case would you prefer for the correct version of the affected files? Should they be in mixed/upper case, as they were before, or would you like them to be all lower case? The latter would be inconsistent with the remainder of the documentation directory, however...
from r.
I'm thinking of having them all lowercase. This doesn't seem to be too inconsistent, though. There are other files that are lowercase and don't have PascalCase counterparts. Maybe you could rename other files to match the naming scheme?
from r.
At first glance, I thought that all files in the documentation directory were just normal, manually written and edited documentation files.
But now I dug a little bit deeper to understand the issue, and learnt that these files are autogenerated by a Github workflow. What was specifically changed in #88 was that a new R script .github/scripts/doc_builder.r has been added that does this job, and does it differently than before, when this functionality was still in .github/workflows/documentation_workflow.yml
So I've now come to think that manually changing stuff in the documentation directory is pointless because of this. I guess when a maintainer commits to the master branch and the Github workflows are triggered, all documentation files are re-generated.
However: this won't delete the old ones. Maybe this could be added to the workflow? I'm not sure about this, as I'm not very familiar with GH workflows...
from r.
I've added removal of old files in #121, but it seems that not all of them are autogenerated (just based on the number of removed and added files). HTML files are not generated either. Unfortunately, I don't have time to dig in at the moment. Maybe you could check what's going on? Where HTML files are from and whether or not there is manual documentation?
from r.
In the meantime, I dug in deeper, and on my fork I did a change similar to yours: in ./github/documentation_workflow.yml I deleted the documentation directory via rm -rf
so that everything gets regenerated.
See my change here
Then when the workflow runs, it turns out, as you also noticed, that a lot of files in the documentation directory are missing afterwards. This is due to a lot of the R scripts failing to run properly. See the workflow output of my commit here in the section Documentation compilation
. Lots of error messages there, so no new output file for each affected script 🤔😔
So I think the R scripts ran properly some time ago in the past, but over time, some of them started to fail because of reasons beyond my knowledge. However as the documentation directory was never deleted before, the old generated output files from earlier successfull runs just piled up, and nobody noticed that there started to be problems with the R scripts.
So I think the reasons for the errors should be investigated and fixed. However as I am just starting to learn R, this is far beyond my knowledge.
With the original problem in my issue of files names clashing, I just scratched the surface of deeper and more serious problem, I think. Some of the core maintainers should look into this issue and fix it.
from r.
Related Issues (20)
- Create searching algorithm in R HOT 5
- Create binary search algorithm in R HOT 2
- Create Cocktail Sort program HOT 1
- Create Tim Sort Program HOT 1
- Add Gitpod Setup
- Missing dependencies in .R files? HOT 1
- Adding Quantitative finance algorithms HOT 2
- Establish Naming Conventions HOT 1
- Yg
- Where are the sample datasets? HOT 4
- R
- Add documentation in the code (something similar to Doxygen) HOT 4
- Reproducible code HOT 7
- Update contribution guidelines
- idk
- Multiple sequence alignment using R HOT 9
- T
- print ("xyecoc")
- MSA problem in R Studio HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from r.