-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Inkludert docker-compose-fil til utvikling * Oppdatert tester * Github actions: byttet fra ubuntu-latest til ubuntu-22.04 og ubuntu-20.04; fjernet testing på windows og osx (kommer sikkert til å angre på dette senere...); fjernet testing på develop-versjonen av R (tester kun på release). * Linting
- Loading branch information
Showing
31 changed files
with
125 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,42 @@ | ||
get_data <- function() { | ||
if (exists("datasett")) { | ||
return(datasett) | ||
} else if (file.exists("fag.rds")) { | ||
datasett <- readRDS("fag.rds") | ||
return(datasett) | ||
} else if (file.exists("fag.csv")) { | ||
datasett <- read.table("fag.csv", | ||
sep = ",", | ||
header = TRUE, | ||
encoding = "UTF-8", | ||
stringsAsFactors = FALSE | ||
) | ||
|
||
names(datasett) <- tolower(names(datasett)) | ||
if (file.exists("fag2.csv")) { | ||
datasett2 <- read.table("fag2.csv", | ||
sep = ",", | ||
header = TRUE, | ||
encoding = "UTF-8", | ||
stringsAsFactors = FALSE) | ||
|
||
names(datasett2) <- tolower(names(datasett2)) | ||
datasett2$niva <- "Uten overf" | ||
datasett$niva <- "Med overf" | ||
datasett <- rbind(datasett2, datasett) | ||
} | ||
return(datasett) | ||
} else if (file.exists("behandler.rds") && file.exists("justertoverf.rds")) { | ||
uten_overf <- readRDS("behandler.rds") | ||
med_overf <- readRDS("justertoverf.rds") | ||
|
||
uten_overf$niva <- "Uten overf" | ||
med_overf$niva <- "Med overf" | ||
|
||
return(rbind(uten_overf, med_overf)) | ||
} else { | ||
return(tmongr::testdata3) | ||
} | ||
} | ||
get_data <- function() { | ||
if (exists("datasett")) { | ||
return(datasett) | ||
} else if (file.exists("fag.rds")) { | ||
datasett <- readRDS("fag.rds") | ||
return(datasett) | ||
} else if (file.exists("fag.csv")) { | ||
datasett <- read.table("fag.csv", | ||
sep = ",", | ||
header = TRUE, | ||
encoding = "UTF-8", | ||
stringsAsFactors = FALSE | ||
) | ||
|
||
names(datasett) <- tolower(names(datasett)) | ||
if (file.exists("fag2.csv")) { | ||
datasett2 <- read.table( | ||
"fag2.csv", | ||
sep = ",", | ||
header = TRUE, | ||
encoding = "UTF-8", | ||
stringsAsFactors = FALSE | ||
) | ||
|
||
names(datasett2) <- tolower(names(datasett2)) | ||
datasett2$niva <- "Uten overf" | ||
datasett$niva <- "Med overf" | ||
datasett <- rbind(datasett2, datasett) | ||
} | ||
return(datasett) | ||
} else if (file.exists("behandler.rds") && file.exists("justertoverf.rds")) { | ||
uten_overf <- readRDS("behandler.rds") | ||
med_overf <- readRDS("justertoverf.rds") | ||
|
||
uten_overf$niva <- "Uten overf" | ||
med_overf$niva <- "Med overf" | ||
|
||
return(rbind(uten_overf, med_overf)) | ||
} else { | ||
return(tmongr::testdata3) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
version: '3.8' | ||
|
||
services: | ||
|
||
dev: | ||
image: hnskde/mongr-dev-rstudio:latest | ||
restart: "no" | ||
volumes: | ||
- ~/.ssh:/home/rstudio/.ssh | ||
- ~/.gitconfig:/home/rstudio/.gitconfig | ||
- .:/home/rstudio/tmongr | ||
ports: | ||
- 8787:8787 | ||
environment: | ||
DISABLE_AUTH: "true" | ||
|
||
code-server: | ||
image: hnskde/mongr-dev-code-server:latest | ||
restart: "no" | ||
volumes: | ||
- ~/.ssh:/home/coder/.ssh | ||
- ~/.gitconfig:/home/coder/.gitconfig | ||
- .:/home/coder/tmongr | ||
ports: | ||
- 8080:8080 | ||
environment: | ||
PASSWORD: password | ||
|
||
app: | ||
image: hnskde/tmongr:latest | ||
ports: | ||
- 3838:80 | ||
|
||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters