Configuration problem running dv8 showcase #334
-
I received this error when running the dv8_showcase: Error in parse_gitlog(perceval_path, git_repo_path) : I checked the value of perceval_path and it is correct. The git_repo_path is: "../../rawdata/pdfbox/git_repo/.git" The showcase is being run in ~/Documents/GitHub/kaiaulu/kaiaulu But I was advised to create the rawdata folder within ~/Documents/GitHub/kaiaulu, which is what I did. The folder is: Clearly these do not match. What is the prefered solution? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Not sure I follow the question. Are you asking why If so, this is a common point of confusion but it has less to do with Kaiaulu and more how it works when you are using the RStudio IDE. When you press play on the code block, you are executing the .Rmd file. That is on vignettes, hence ../../. However, if you copy and paste the code to the console, then you are running from whatever directory is specified, which generally is kaiaulu/kaiaulu. Or are you saying the config specifies to be in |
Beta Was this translation helpful? Give feedback.
-
OK, it works now. But, FYI, that was really confusing. Why don't you create a standardized folder structure and then have a function that creates it? Specifying paths like this is likely to be error-prone. For example, I could specify the git repo (e.g. https://github.com/apache/pdfbox.git) and the function does the git clone and puts the data in the correct folder. The learning curve is steep. Why not make it a bit flatter? |
Beta Was this translation helpful? Give feedback.
Looking closely:
Try to use instead: "../../rawdata/pdfbox/git_repo/pdfbox/.git"
Notice I added a
/pdfbox/
before the .git. When you git clone a project, you download both its source code, i.e./pdfbox/
and the git log, i.e./pdfbox/.git
inside of it. To double check the path, I suggest you go via terminal using cd inside the.git
folder, and then type pwd.This is also what is used in Calculator:
kaiaulu/conf/calculator.yml
Line 39 in ac522b6
I would in fact, recommend you try to run the notebook on Calculator first before trying to make your own on pdfbox…