Skip to content

Commit 3d030ea

Browse files
authored
Dev prinsipper (#62)
* Added document on programming language and links on start page * Updated links * Seperate xfun install.
1 parent 7268f62 commit 3d030ea

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.github/workflows/R-CMD-check.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,12 @@ jobs:
4444

4545
- name: Install pak
4646
run: Rscript -e 'install.packages("pak")'
47-
47+
48+
- name: Install xfun from source as fallback
49+
run: |
50+
Rscript -e "options(pkgType = 'source'); pak::pkg_install('xfun')"
51+
Rscript -e "options(pkgType = 'binary')"
52+
4853
- name: Install Kostra package
4954
run: Rscript -e 'pak::pkg_install(c("statisticsnorway/ReGenesees", "statisticsnorway/ssb-sdcforetakperson", "statisticsnorway/ssb-kostra", "statisticsnorway/ssb-struktur", "statisticsnorway/ssb-pris", "statisticsnorway/ssb-sdclonn", "statisticsnorway/ssb-pickmdl", "statisticsnorway/ssb-sadashboard"))'
5055

website/rogpython.qmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Pakken er fortsatt under utvikling og mangler noe funksjonalitet, for eksempel h
2222
```bash
2323
poetry add rwrapr
2424
```
25-
Se videoen under og koden [rwrapr_kjoring.py](https://github.com/statisticsnorway/ssb-metodebiblioteket/blob/main/Python-og-R/rwrapr_kjoring.py) for eksempler.
25+
Se videoen under og koden [rwrapr_kjoring.py](https://github.com/statisticsnorway/ssb-metodebiblioteket/blob/master/Python-og-R/rwrapr_kjoring.py) for eksempler.
2626

2727
<div style="padding:56.25% 0 0 0;position:relative;"><iframe src="https://player.vimeo.com/video/1145878640?badge=0&amp;autopause=0&amp;player_id=0&amp;app_id=58479" frameborder="0" allow="autoplay; fullscreen; picture-in-picture; clipboard-write; encrypted-media; web-share" referrerpolicy="strict-origin-when-cross-origin" style="position:absolute;top:0;left:0;width:100%;height:100%;" title="Kjør R funksjoner i Python med RWrapR"></iframe></div><script src="https://player.vimeo.com/api/player.js"></script>
2828

@@ -39,7 +39,7 @@ import subprocess
3939

4040
subprocess.run(["Rscript", "lager_statistikk.R"])
4141
```
42-
Se videoen under og kode [subprocess_kjoring.py](https://github.com/statisticsnorway/ssb-metodebiblioteket/blob/main/Python-og-R/subprocess_kjoring.py) for eksempler.
42+
Se videoen under og kode [subprocess_kjoring.py](https://github.com/statisticsnorway/ssb-metodebiblioteket/blob/master/Python-og-R/subprocess_kjoring.py) for eksempler.
4343

4444
<div style="padding:56.25% 0 0 0;position:relative;"><iframe src="https://player.vimeo.com/video/1145878687?badge=0&amp;autopause=0&amp;player_id=0&amp;app_id=58479" frameborder="0" allow="autoplay; fullscreen; picture-in-picture; clipboard-write; encrypted-media; web-share" referrerpolicy="strict-origin-when-cross-origin" style="position:absolute;top:0;left:0;width:100%;height:100%;" title="Kjøre R-skript fra Python med subprocess"></iframe></div><script src="https://player.vimeo.com/api/player.js"></script>
4545

@@ -53,6 +53,6 @@ For å bruke reticulate, må pakken installeres i R:
5353
renv::install("reticulate")
5454
```
5555

56-
Se videoen under og koden [reticulate_kjoring.R](https://github.com/statisticsnorway/ssb-metodebiblioteket/blob/main/Python-og-R/reticulate_kjoring.py) for eksempler.
56+
Se videoen under og koden [reticulate_kjoring.R](https://github.com/statisticsnorway/ssb-metodebiblioteket/blob/master/Python-og-R/reticulate_kjoring.R) for eksempler.
5757

5858
<div style="padding:56.25% 0 0 0;position:relative;"><iframe src="https://player.vimeo.com/video/1145855585?title=0&amp;byline=0&amp;portrait=0&amp;badge=0&amp;autopause=0&amp;player_id=0&amp;app_id=58479" frameborder="0" allow="autoplay; fullscreen; picture-in-picture; clipboard-write; encrypted-media; web-share" referrerpolicy="strict-origin-when-cross-origin" style="position:absolute;top:0;left:0;width:100%;height:100%;" title="Kjør Python fra R med reticulate"></iframe></div><script src="https://player.vimeo.com/api/player.js"></script>

0 commit comments

Comments
 (0)