R/httpget_user_library.R

Defines functions httpget_user_library

httpget_user_library <- function(username, requri){
  #append user home library to path
  homelib <- userlibpath(username);
  
  #check if exists
  if(!file.exists(homelib)){
    res$error(paste("R package library for user", username, "not found."), 404);
  }

  #load package from homelib (dependencies can still be loaded from site library)  
  inlib(homelib, {
    httpget_library(homelib, requri);
  });
}

Try the opencpu package in your browser

Any scripts or data that you put into this service are public.

opencpu documentation built on Aug. 7, 2023, 5:12 p.m.