kadyb / rgugik

Download datasets from Polish Head Office of Geodesy and Cartography
https://kadyb.github.io/rgugik/
Other
33 stars 4 forks source link

pkgdown #15

Closed Nowosad closed 4 years ago

Nowosad commented 4 years ago

@kadyb you need to set publishing to the gh-pages branch - https://docs.github.com/en/enterprise/2.14/user/articles/configuring-a-publishing-source-for-github-pages

Nowosad commented 4 years ago

Also see the error at https://github.com/kadyb/rgugik/runs/990838939?check_suite_focus=true. We need to improve/change examples - now they are downloading extremely large files (we should aim for a few MB at best, not few hundreds..).

kadyb commented 4 years ago

@kadyb you need to set publishing to the gh-pages branch - https://docs.github.com/en/enterprise/2.14/user/articles/configuring-a-publishing-source-for-github-pages

  1. I set publishing to the gh-pages.

Also see the error at https://github.com/kadyb/rgugik/runs/990838939?check_suite_focus=true. We need to improve/change examples - now they are downloading extremely large files (we should aim for a few MB at best, not few hundreds..).

  1. I think use deploy_to_branch(examples = FALSE) should be fine. This is what we do in the case of rcmdcheck.

  2. I think rcmdcheck and pkgdown should be in separate files (scripts).

Nowosad commented 4 years ago

Ad2. This is a workaround, not a solution. Why? Because potential users will try to run examples and will end up with large (unnecessary) files on their hard drives. I would suggest trying to think of truly minimal examples.

Ad3. In my opinion it is fine to have them together (for several reasons). One of them is that you do not want to have new website version for not-working code.

kadyb commented 4 years ago
  1. We can use data from the smallest counties and voivodeships, but it is still a lot of data, so their size will be large.

  2. I think, now it's misleading. We have two different jobs under one name and in the overview you don't know if rcmdcheck or pkgdown really doesn't work, so I think it would be better to separate them. Further, the code will be tested in another job, so you will know if it works or not. Now it looks like there is a problem with the code package itself, but in fact only the website is not build.

In addition, take a look at other projects: valr, ggspatial, ggplot2. They have these two task in different scripts.

The solution may be to split into two scripts and pkgdown will only execute if rcmdcheck didn't return any errors. Example

kadyb commented 4 years ago

I split these two jobs into two separate scripts (rcmdcheck.yml and pkgdown.yml). For this moment, I used deploy_to_branch(examples = FALSE) and website is delivered, but that doesn't solve the big data problem in the examples. Also, there is no deploy instruction for pkgdown if rcmdcheck didn't return any error.

Nowosad commented 4 years ago

Regarding the big data files in examples, I would suggest:

  1. Updating examples with the smallest data possible.
  2. Adding comments to the examples when the output file is large (e.g. >5MB). For example, # Note: the output file has the size of ....
kadyb commented 4 years ago

To fix: Article title "| General Geographic Database | Baza Danych Obiektów Ogólnogeograficznych" is so long on website. Should be "General Geographic Database".

Is it possible to change the title only on the page? I think, the title on the website should be only in English, but in the document we should use the Polish and English title, because the Polish is official and reference. Maybe can it be set in _pkgdown.yml?

Nowosad commented 4 years ago

To fix: Article title "| General Geographic Database | Baza Danych Obiektów Ogólnogeograficznych" is so long on website. Should be "General Geographic Database".

Is it possible to change the title only on the page? I think, the title on the website should be only in English, but in the document we should use the Polish and English title, because the Polish is official and reference. Maybe can it be set in _pkgdown.yml?

Done.