Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(bridge2ai): test an example of Shiny project #2603

Closed
wants to merge 6 commits into from

Conversation

rrchai
Copy link
Contributor

@rrchai rrchai commented Mar 27, 2024

Changelog

  • add a shiny app example

Preview

nx prepare bridge2ai-app
nx serve bridge2ai-app

> nx run bridge2ai-app:serve

Loading required package: shiny

Listening on http://127.0.0.1:3838
Screen Shot 2024-03-26 at 5 14 46 PM

@rrchai rrchai added the sonar-scan-approved-deprecated Ready for Sonar code analysis label Mar 27, 2024
@rrchai rrchai changed the title (bridge2ai): test an example of Shiny project bridge2ai(feat): test an example of Shiny project Mar 27, 2024
@tschaffter
Copy link
Member

bridge2ai(feat)

It's the other way around: feat(bridge2ai)

@rrchai rrchai changed the title bridge2ai(feat): test an example of Shiny project feat(bridge2ai): test an example of Shiny project Mar 27, 2024
@tschaffter
Copy link
Member

@rrchai Could you please share an update about this project here?

@tschaffter tschaffter self-requested a review July 22, 2024 12:28
@tschaffter
Copy link
Member

I gave a try to nx prepare {project} and the command failed:

- Installing terra ...                          FAILED
/opt/R/4.2.3/lib/R/bin/R --vanilla -s -f '/tmp/RtmpvPVUol/renv-install-5c1f8bbc6050.R'
================================================================================

Error in dyn.load(file, DLLpath = DLLpath, ...) : 
  unable to load shared object '/workspaces/sage-monorepo/apps/bridge2ai/app/renv/staging/1/terra/libs/terra.so':
  libproj.so.22: cannot open shared object file: No such file or directory
Calls: loadNamespace -> library.dynam -> dyn.load
Execution halted

Error: error testing if 'terra' can be loaded [error code 1]
Traceback (most recent calls last):
14: renv::restore()
13: renv_restore_run_actions(project, diff, current, lockfile, rebuild)
12: renv_install_impl(records)
11: renv_install_staged(records)
10: renv_install_default(records)
 9: handler(package, renv_install_package(record))
 8: renv_install_package(record)
 7: withCallingHandlers(renv_install_package_impl(record), error = function(e) writef("FAILED"))
 6: renv_install_package_impl(record)
 5: withCallingHandlers(if (isbin) renv_install_test(package), error = function(err) unlink(installpath, 
        recursive = TRUE))
 4: renv_install_test(package)
 3: renv_system_exec(command = R(), args = c("--vanilla", "-s", "-f", 
        renv_shell_path(script)), action = sprintf("testing if '%s' can be loaded", 
        package))
 2: abort(sprintf("error %s [error code %i]", action, status), body = renv_system_exec_details(command, 
        args, output))
 1: stop(fallback)
Execution halted
Warning: command "sudo apt-get install libgdal-dev -y" exited with non-zero status code
Warning: command "Rscript -e 'renv::restore()'" exited with non-zero status code
—————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————

 NX   Ran target prepare for project bridge2ai-app (3m)

   ✖  1/1 failed
   ✔  0/1 succeeded [0 read from cache]

@rrchai
Copy link
Contributor Author

rrchai commented Jul 22, 2024

@tschaffter Thanks for checking. This pr is probably outdated, and I'll update later this week to make it work.

@tschaffter
Copy link
Member

Warning

This branch was created before the repo migrated to pnpm as the Node.js package manager. Consider creating a new branch from main. Alternatively, we could meet in a call to update this branch together.

@tschaffter
Copy link
Member

This PR hasn't been updated in a while so I'll go ahead and close it. Since this branch still relies on the Yarn package manager, it would be easier to create it again from main rather than update it. This contribution should still be handy in the future.

@tschaffter tschaffter closed this Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sonar-scan-approved-deprecated Ready for Sonar code analysis
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants