Skip to content
This repository was archived by the owner on Aug 28, 2025. It is now read-only.
This repository was archived by the owner on Aug 28, 2025. It is now read-only.

demoApp failing to build on MacOS #310

@jokroese

Description

@jokroese

Summary

I am trying to run the code described in the Create an app from a package on Github tutorial. As I am using MacOS, I have added the mac_url argument to the electrify function with a link to the desired R build, as described in #272. However, this leads to an error.

Steps to reproduce

MacOS Catalina (10.15.4), R version 4.0.0.

library(electricShine)

buildPath <- tempdir()

electricShine::electrify(app_name = "My_App",
                         short_description = "My demo application",
                         semantic_version = "1.0.0",
                         build_path = buildPath,
                         function_name = "run_app",
                         git_host = "github",
                         git_repo = "chasemc/demoApp@8426481",
                         package_install_opts = list(type = "binary",
                                                     dependencies = c("Depends", 
                                                                      "Imports")
                         ),
                         cran_like_url = "https://cran.r-project.org",
                         mac_url = "https://mac.r-project.org/high-sierra/R-4.0-branch/x86_64/R-4.0-branch.tar.gz"
)

Gives an error:

Error: (converted from warning) package ‘datasets’ in options("defaultPackages") was not found
Execution halted
Error: Failed to install 'demoApp' from GitHub:
  (converted from warning) installation of package ‘/var/folders/16/vnr99r9578572b4ch8zgtl8h0000gn/T//Rtmp2RYFpX/file85852e311c21/demoApp_1.0.18.tar.gz’ had non-zero exit status
Execution halted
Finshed: Installing your Shiny package into electricShine framework
Error in system.file("extdata", "icon", package = my_package_name, lib.loc = library_path) : 
  'package' must be of length 1

Question

Are you able to spot the problem? I suspect that I have incorrectly written something in the electrify function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions