R/load_ROCKproject.R

Defines functions load_ROCKproject

load_ROCKproject <- function(x,
                             output = tempdir()) {

  if (!file.exists(x)) {

    stop("The file to specified to load, `", x,
         "`, does no exist!");

  }

  fileext <- tools::file_ext(x);

  if (!grepl("rockproj|zip", fileext, ignore.case = TRUE)) {

    stop("The file to specified to load, `", x,
         "`, seems to have a different extension from 'ROCKproject'!");

  }

  projectFiles <-
    utils::unzip(
      zipfile = x,
      exdir = output
    );





}

Try the rock package in your browser

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

rock documentation built on June 14, 2025, 1:08 a.m.