I hereby claim:
- I am s-u on github.
- I am urbanek (https://keybase.io/urbanek) on keybase.
- I have a public key ASD2nbXlZbLli-nTk_D-Etx6fIpCYWX8njGbTsztRiUGZAo
To claim this, I am signing this object:
| #!/bin/bash | |
| set -e | |
| arch=$(uname -m) | |
| if [ -z "$1" ]; then | |
| echo '' | |
| echo " Usage: $0 <version>" | |
| echo '' | |
| echo " Will fetch R-<version>-branch-$arch.tar.xz so use something like" |
I hereby claim:
To claim this, I am signing this object:
| ## automatic generation of S3Method() exports for a NAMESPACE | |
| all = ls(2) | |
| ## find generics | |
| isg = sapply(all, function(o) length(grep("UseMethod", deparse(get(o))))) | |
| gens = names(isg[isg > 0]) | |
| ## check some most common primitives | |
| for (gen in c("+","-","$","$<-")) | |
| if (any(substr(all, 1, nchar(gen) + 1) == paste0(gen, "."))) | |
| gens = c(gens, gen) |
| library(randomForest) | |
| library(jsonlite) | |
| # wczytanie modelu | |
| model <- readRDS("model_rf.RDS") | |
| # API - metody | |
| predict_iris <- function(df) { | |
| df <- as.data.frame(df) | |
| ## this is a bug in the client, it uses wrong names - so we have to fix it |
| Index: src/include/Rinternals.h | |
| =================================================================== | |
| --- src/include/Rinternals.h (revision 78478) | |
| +++ src/include/Rinternals.h (working copy) | |
| @@ -1461,9 +1461,15 @@ | |
| int R_check_class_etc (SEXP x, const char **valid); | |
| /* preserve objects across GCs */ | |
| -void R_PreserveObject(SEXP); | |
| -void R_ReleaseObject(SEXP); |
I hereby claim:
To claim this, I am signing this object:
| /* minimalistic UDP-based broadcast discovery tool | |
| (C)2018 Simon Urbanek <simon.urbanek@R-project.org> | |
| License: MIT | |
| */ | |
| #include <sys/types.h> | |
| #include <sys/socket.h> | |
| #include <netinet/in.h> |
| ## This script is intended to be run on Ubuntu 16.04 LTS or 18.04 LTS | |
| ## as an automated way to install basic RCloud without metadata services | |
| ## mainly to boostrap compute note VMs | |
| ## | |
| ## Author: Simon Urbanek <simon.urbanek@R-project.org> | |
| ## License: MIT | |
| ## install dependencies | |
| sudo apt-get update | |
| sudo apt-get install -y gcc g++ gfortran libcairo-dev libreadline-dev libxt-dev libjpeg-dev \ |
| // simple test case for generating a test data frame in Java in JSON and native form | |
| // uses Java Jsonx API, e.g., compile with -cp javax.json-api-1.0.jar:javax.json-1.0.4.jar | |
| import javax.json.*; | |
| public class A { | |
| public static int n = 1000000; | |
| public static void main(String[] main) { | |
| JsonObjectBuilder ob = Json.createObjectBuilder(); |
| #include <sys/types.h> | |
| #include <sys/stat.h> | |
| #include <sys/mman.h> | |
| #include <unistd.h> | |
| #include <fcntl.h> | |
| #include <Rinternals.h> | |
| #include <R_ext/Rallocators.h> | |
| static void *mmap_alloc(R_allocator_t *allocator, size_t length) { |