Skip to content

Translate vignettes - #94

Merged
GegznaV merged 41 commits into
cbeleites:feature/vignettes-in-rmdfrom
GegznaV:translate_vignettes
Jun 4, 2020
Merged

GegznaV merged 41 commits into
cbeleites:feature/vignettes-in-rmdfrom
GegznaV:translate_vignettes

Conversation

@GegznaV

@GegznaV GegznaV commented Jan 2, 2020 •

Copy link
Copy Markdown
Collaborator

I created this pull request so that @cbeleites could review the vignettes, that are translated to Rmd. Vignettes that are ready to be reviewed:

  • hyperspec
  • plotting

You should build these files into HTML as you do with regular Rmd files (I use the "knit" button in RStudio).

Others are not properly translated as only automatic script converted some parts to Rmd. So please, do not merge the pull request yet. I will finish translating the remaining vignettes sometime in the future and will announce about that.

The main principles I used for the translation are described in #93.

Related: #93, #79

@cbeleites

Copy link
Copy Markdown
Owner

I'll try to have a look next week.

Many thanks for your efforts. I do know how much work that translation is, and I highly appreciate it!

@ximeg

ximeg commented May 12, 2020

Copy link
Copy Markdown
Collaborator

Hi @GegznaV , GitHub allows you to change the type of this pull request to be 'draft'. This way you indicate that it is still work in progress and it cannot be merged until you mark it yourself as completed.

@GegznaV
GegznaV marked this pull request as draft May 12, 2020 13:21
@GegznaV GegznaV changed the title [Do not merge yet] Translate vignettes Translate vignettes May 18, 2020
@GegznaV GegznaV added the Topic: documentation 📘 Related to hyperSpec's (non-vignette) documentation. Use a separate dag for vignettes. label May 18, 2020
@GegznaV GegznaV added this to the HTML documentation milestone May 18, 2020
@GegznaV

GegznaV commented May 20, 2020

Copy link
Copy Markdown
Collaborator Author

Three translated vignettes (hyperspec, plotting, and chondro) are ready to be reviewed. The HTML versions are here:

And you may fork my branch to explore the source code. At this phase, I tried not to change the contents as much as possible. And before going to the translation of the next vignette I would like to know if you have any remarks that would help me. Or is it OK for you how it looks now?

In the places that, in my opinion, need attention, I added "Translator's notes" like this one:
image
Some of these remarks are related to the contents and should be addressed later (when the translation is finished).

I demonstrated, that it is possible to do multi-subplot pots like this one:
image
And yes, sometimes these plots look blurry as they are bigger than the width of the text so they are forced to fit.

But I think that it is more convenient to create plots without subplots as the code, which generates the plot, is always above the plot:
image

What is your opinion on this issue?

@GegznaV

GegznaV commented May 20, 2020

Copy link
Copy Markdown
Collaborator Author

By saying:

Or is it OK for you how it looks now?

I meant if you'd accept the vignettes as they look now. (Someone else could continue on polishing other aspects of these documents then).

@ximeg

ximeg commented May 24, 2020 •

Copy link
Copy Markdown
Collaborator

Hi @GegznaV
Awesome, many thanks for your great contribution, it looks gorgeous! 👍 I see you put a lot of effort and addressed even very unnoticeable issues :)

  1. Regarding separate plots or multi-subplots: I would prefer to usually have separate plots - they are easier to maintain and they better correspond to the code. However, in the specific case you asking about, we compare 3 plots with each other, and in such a case side by side makes more sense.

  2. I found minor issues in the Rmd files, and instead of writing a bunch of comments here, I'll post several small pull requests to your repo, for example this one for chondro.Rmd and this one for hyperSpec.Rmd

  3. To reproduce the vignettes, packages bookdown, ggplotify and ggpubr are necessary. They are not installed with hyperSpec by default. We need some solution for that. May be it makes sense to include them temporarily?? @cbeleites - do you have an opinion on that?

So far I checked chondro and hyperSpec, and I approve them!

ximeg added 3 commits May 23, 2020 22:51
The slot @log was deprecated and not in use for at least 10 years. We met a decision to permanently remove it from hyperSpec, and thus it should be not be mentioned in the vignette as well.
@GegznaV

GegznaV commented May 25, 2020 •

Copy link
Copy Markdown
Collaborator Author

After today's changes related to changed branches, I can no longer pull changes into my branch translate_vignettes. I even cannot checkout to that branch with the following message:

image

Any suggestions? @ximeg @cbeleites

@ximeg

ximeg commented May 25, 2020 •

Copy link
Copy Markdown
Collaborator

@GegznaV We didn't break anything! We just run against the github git lfs download bandwidth quota limit (which we didn't even know exists).

Turns out, that the quota is per-user basis (in this case @cbeleites ), and it applies to all repositories of this user, and to all forks of this repository. The bandwidth quota is consumed everytime anyone downloads a file from git LFS, which is weird.

In the future we are going to get rid of git LFS in this repo. For now, I purchased a GitHub gift card and sent it to Claudia, so that she can get more data and we can continue working. As soon she does it, you will be able to continue working.

@GegznaV

GegznaV commented May 27, 2020 •

Copy link
Copy Markdown
Collaborator Author

Temporary preview of the hyperSpec's vignettes in a form of GitBook book (built with bookdown) is available at https://hyperspec-book.netlify.app/. The preview will be updated as I progress with the translation.

@ximeg

ximeg commented May 27, 2020

Copy link
Copy Markdown
Collaborator

@GegznaV This is very cool! We appreciate your efforts so much!

@bryanhanson

bryanhanson commented May 27, 2020 •

Copy link
Copy Markdown
Collaborator

Yes, I concur with @ximeg this is a very big step forward and much appreciation to Vilmantas! What is the short-term plan for these? Will we hold off on polishing these until most of the other work planned for the summer is done? Some of these will change a lot I suppose, some only a little. Perhaps the introduction will change little and can be reviewed now? What do you think @cbeleites ? I'm glad to review these but don't want to right now if many changes are coming.

@GegznaV

GegznaV commented May 29, 2020 •

Copy link
Copy Markdown
Collaborator Author

@GegznaV GegznaV added the Topic: vignette 📗 Related to vignettes of hyperSpec label May 29, 2020
@cbeleites

Copy link
Copy Markdown
Owner

@bryanhanson , with the exception of vignettes fileio and chondro, the others (hyperSpec, laser, flu) should be fine to review now.

@bryanhanson

Copy link
Copy Markdown
Collaborator

@cbeleites I would be glad to do so. I do tend to do a lot of polishing of such documents (I'm a perfectionist and have made documents for students for decades). Is that OK? Or would you prefer a much lighter touch?

@GegznaV just to confirm, these changes are on https://github.com/GegznaV/hyperSpec/tree/translate_vignettes ? So I will fork your fork and when done do a pull request to your repo, and eventually you will do a pull request back into the main hyperSpec on some branch?

@ximeg

ximeg commented Jun 3, 2020

Copy link
Copy Markdown
Collaborator

@bryanhanson Yes, this is how I did it - fork of a fork :) It worked.

@GegznaV
GegznaV changed the base branch from develop to feature/vignettes-in-rmd June 4, 2020 09:00
GegznaV added 2 commits June 4, 2020 12:01
`bookdown` allows automatic numbering of tables and figures in R Markdown files and includes some other features imported from LaTeX that are not present in regular R Markdown. It allows smoother transition from Rnw to Rmd vignettes.
@GegznaV
GegznaV marked this pull request as ready for review June 4, 2020 09:22
@GegznaV
GegznaV merged commit 7f66b61 into cbeleites:feature/vignettes-in-rmd Jun 4, 2020
@GegznaV

GegznaV commented Jun 4, 2020 •

Copy link
Copy Markdown
Collaborator Author

just to confirm, these changes are on https://github.com/GegznaV/hyperSpec/tree/translate_vignettes ?

@bryanhanson I created a new feature branch feature/vignettes-in-rmd and committed all my changes to that branch. You may fork that branch and commit your corrections to it. It would be easier to use a branch than on a fork.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Topic: documentation 📘 Related to hyperSpec's (non-vignette) documentation. Use a separate dag for vignettes. Topic: vignette 📗 Related to vignettes of hyperSpec

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants