teal.gallery icon indicating copy to clipboard operation
teal.gallery copied to clipboard

[I got error message: Error in error_if_stageddeps_inexistent(project) : file staged_dependencies.yaml does not exist in project folder: not restoring anything ]: <title>

Open czqiu opened this issue 2 years ago • 14 comments

What is your question?

I got error: Error in error_if_stageddeps_inexistent(project) : file staged_dependencies.yaml does not exist in project folder: not restoring anything

when I # Install deps and this project staged.dependencies::install_deps( staged.dependencies::dependency_table() )

Could you please help for any suggestions?

Thanks Eric

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct.

Contribution Guidelines

  • [X] I agree to follow this project's Contribution Guidelines.

Security Policy

  • [X] I agree to follow this project's Security Policy.

czqiu avatar May 19 '23 23:05 czqiu

Hi @czqiu

When you run this code:

# Install deps and this project
staged.dependencies::install_deps(
  staged.dependencies::dependency_table()
)

Can you make sure that you're in the teal.gallery project session? If you're using using RStudio, make sure to double click the teal.gallery.Rproj file once you clone it.

donyunardi avatar May 20 '23 03:05 donyunardi

I cannot clone this repository locally. Can I just download all files and put it under my local computer? Thanks

czqiu avatar May 22 '23 16:05 czqiu

I download all files and put it to my local folder. I also clicked teal.gallery.Rproj to open it in Rstudio. Then, I run the installation code again. I got this error:

Install deps and this project

staged.dependencies::install_deps(

  • staged.dependencies::dependency_table()
  • ) Error in lookup_repository(repo) : The working directory is not in a git repository

Any further suggestions? Thanks

czqiu avatar May 22 '23 16:05 czqiu

If you're downloading as zip file, the first thing you need to do is to do git init in terminal to initialize the git repository.

Once you open the teal.gallery.Rproj, go to your terminal tab in RStudio, make sure you're in the teal.gallery-main directory and run git init.

Once you do this, you should be able to run the:

staged.dependencies::install_deps(
  staged.dependencies::dependency_table()
)

Please keep in mind that you'd need to setup your access token first as mentioned here: https://github.com/insightsengineering/teal.gallery#installation

donyunardi avatar May 23 '23 04:05 donyunardi

I cannot clone this repository locally. Can I just download all files and put it under my local computer? Thanks

That is uncommon. Do you mean you run git clone and get an error message or that you cannot make the attempt?

chlebowa avatar May 23 '23 08:05 chlebowa

Hi

Thanks for the suggestions. It is a computer computer. I cannot download git to install. So, I can not git it to the github. So, is there any other way to do it locally instead of git clone ?

Thanks Eric


From: Aleksander Chlebowski @.> Sent: Tuesday, May 23, 2023 1:10 AM To: insightsengineering/teal.gallery @.> Cc: Zunqiu Chen @.>; Mention @.> Subject: Re: [insightsengineering/teal.gallery] [I got error message: Error in error_if_stageddeps_inexistent(project) : file staged_dependencies.yaml does not exist in project folder: not restoring anything ]:

(Issue #24) <p>I cannot clone this repository locally. Can I just download all files and put it under my local computer? Thanks</p> <p>That is uncommon. Do you mean you run git clone and get an error message or that you cannot make the attempt?</p> <p>— Reply to this email directly, view it on GitHub<a href="https://github.com/insightsengineering/teal.gallery/issues/24#issuecomment-1558754004" rel="nofollow" target="_blank" >https://github.com/insightsengineering/teal.gallery/issues/24#issuecomment-1558754004</a>, or unsubscribe<a href="https://github.com/notifications/unsubscribe-auth/ACBNDL7V6RZ5RHDYUHGBOR3XHRWHBANCNFSM6AAAAAAYILCMXQ" rel="nofollow" target="_blank" >https://github.com/notifications/unsubscribe-auth/ACBNDL7V6RZ5RHDYUHGBOR3XHRWHBANCNFSM6AAAAAAYILCMXQ</a>. You are receiving this because you were mentioned.Message ID: <em><strong>@</strong></em>.***></p>

czqiu avatar May 23 '23 15:05 czqiu

The purpose of staged.dependencies is to install all the dependencies needed to run teal.gallery example apps. If you don't have git installed and can't run staged.dependencies, then the last resort is to install the dependencies yourself. This could be more challenging but not impossible.

You should not have any issue with installing/building teal.gallery into your R session. teal.gallery as a package only requires 4 R packages: https://github.com/insightsengineering/teal.gallery/blob/00547871a0a0131857dc6938ea153edad3df2c5c/DESCRIPTION#L19-L22

(If you don't have some of these packages, RStudio will flag this to you and require you to install before continue with building/installing teal.gallery.)

However, you may run into error when you tried to run the example apps.

For example, if you don't have teal.code installed when you run the early-dev example app (teal.gallery::launch_app("early-dev")), you will see error message like so:

Warning: Error in loadNamespace: there is no package called ‘teal.code’
  2: shiny::runApp
  1: launch_app [/Users/unardid/Downloads/teal.gallery-main/R/utils.R#85]

This will be a hint for you to install teal.code R package from the repo.

donyunardi avatar May 23 '23 18:05 donyunardi

Hi Dony,

thanks for the information. I will give it a try.

Best Eric


From: Dony Unardi @.> Sent: Tuesday, May 23, 2023 11:22 AM To: insightsengineering/teal.gallery @.> Cc: Zunqiu Chen @.>; Mention @.> Subject: Re: [insightsengineering/teal.gallery] [I got error message: Error in error_if_stageddeps_inexistent(project) : file staged_dependencies.yaml does not exist in project folder: not restoring anything ]:

(Issue #24) <p>The purpose of staged.dependencies is to install all the dependencies needed to run teal.gallery example apps. If you don't have git installed and can't run staged.dependencies, then the last resort is to install the dependencies yourself. This could be more challenging but not impossible.</p> <p>You should not have any issue with installing/building teal.gallery into your R session. teal.gallery as a package only requires 4 R packages: https://github.com/insightsengineering/teal.gallery/blob/00547871a0a0131857dc6938ea153edad3df2c5c/DESCRIPTION#L19-L22</p> <p>(If you don't have some of these packages, RStudio will flag this to you and require you to install before continue with building/installing teal.gallery.)</p> <p>However, you may run into error when you tried to run the example apps.</p> <p>For example, if you don't have teal.code installed when you run the early-dev example app (teal.gallery::launch_app("early-dev")), you will see error message like so:</p> <p>Warning: Error in loadNamespace: there is no package called ‘teal.code’ 2: shiny::runApp 1: launch_app [/Users/unardid/Downloads/teal.gallery-main/R/utils.R#85]</p> <p>This will be a hint for you to install teal.code R package from the repo<a href="https://github.com/insightsengineering/teal.code" rel="nofollow" target="_blank" >https://github.com/insightsengineering/teal.code</a>.</p> <p>— Reply to this email directly, view it on GitHub<a href="https://github.com/insightsengineering/teal.gallery/issues/24#issuecomment-1559937292" rel="nofollow" target="_blank" >https://github.com/insightsengineering/teal.gallery/issues/24#issuecomment-1559937292</a>, or unsubscribe<a href="https://github.com/notifications/unsubscribe-auth/ACBNDLZ7M773AJ7VGNAXKO3XHT6ABANCNFSM6AAAAAAYILCMXQ" rel="nofollow" target="_blank" >https://github.com/notifications/unsubscribe-auth/ACBNDLZ7M773AJ7VGNAXKO3XHT6ABANCNFSM6AAAAAAYILCMXQ</a>. You are receiving this because you were mentioned.Message ID: <em><strong>@</strong></em>.***></p>

czqiu avatar May 23 '23 21:05 czqiu

hi Dony, cute head portrait.

I have the same error message when installing the teal.gallery in Rstudio, could you fix it?

another question, I saw the video of Introducing teal, could you send me the Posit Cloud Link? The link shared on PPT doesn't work. Thanks.

https://posit.cloud/spaces/340990/join?access_code=M52ibtFP2ASLLL1MltA-dThXpPzJvRqnxdNOgeJA)

islander23 avatar Jul 15 '23 11:07 islander23

Hi all. We are working on some major refactor of teal.gallery repo to avoid issues like that. Please have a look at https://github.com/insightsengineering/teal.gallery/issues/29 (and linked PR / feature branch but please note that this is still work in progress).

pawelru avatar Jul 17 '23 07:07 pawelru

Hi @islander23 @czqiu

I just wanted to inform you that we have updated our teal.gallery repository to make it easier for users to run the example app. Would you be so kind as to review the README instructions again?

donyunardi avatar Sep 07 '23 03:09 donyunardi

Hi,

After I tried the way in readme. I still cannot successfully use it:

source("https://raw.github.com/insightsengineering/teal.gallery/main/_internal/utils/sourceme.R") restore_and_run("basic-teal")

Warning: failed to resolve remote 'insightsengineering/teal.logger@*release'; skippingWarning: failed to resolve remote 'insightsengineering/teal.slice@*release'; skippingWarning: failed to resolve remote 'insightsengineering/teal.widgets@*release'; skipping- Downloading teal.code from GitHub ... OK [54.3 Kb in 0.73s] Warning: failed to resolve remote 'insightsengineering/teal.widgets@*release'; skippingSuccessfully downloaded 100 packages in 81 seconds.

Installing packages --------------------------------------------------------

  • Installing MASS ... OK [installed binary and cached in 0.74s]
  • Installing Matrix ... FAILED Error: Error installing package 'Matrix': ==================================

Warning in strptime(xx, f, tz = tz) : unable to identify current timezone 'C': please set environment variable 'TZ'

  • installing source package 'Matrix' ... ** package 'Matrix' successfully unpacked and MD5 sums checked ** using staged installation ** libs Warning in system(paste(cmd, "shlib-clean")) : 'make' not found Warning in system(cmd) : 'make' not found ERROR: compilation failed for package 'Matrix'
  • removing 'C:/Users/echen/AppData/Local/Temp/3/RtmpiSLOqC/shinyapp2c845ece3b0e/teal.gallery-6e3e42420aec2090bb469b5403c33830632c35d8/basic-teal/renv/staging/1/Matrix' install of package 'Matrix' failed [error code 1]

Thanks Eric


From: Dony Unardi @.> Sent: Wednesday, September 6, 2023 8:39 PM To: insightsengineering/teal.gallery @.> Cc: Zunqiu Chen @.>; Mention @.> Subject: Re: [insightsengineering/teal.gallery] [I got error message: Error in error_if_stageddeps_inexistent(project) : file staged_dependencies.yaml does not exist in project folder: not restoring anything ]:

(Issue #24) <p>Hi @islander23<a href="https://github.com/islander23" rel="nofollow" target="_blank" >https://github.com/islander23</a> @czqiu<a href="https://github.com/czqiu" rel="nofollow" target="_blank" >https://github.com/czqiu</a></p> <p>I just wanted to inform you that we have updated our teal.gallery repository to make it easier for users to run the example app. Would you be so kind as to review the README instructions again?</p> <p>— Reply to this email directly, view it on GitHub<a href="https://github.com/insightsengineering/teal.gallery/issues/24#issuecomment-1709428674" rel="nofollow" target="_blank" >https://github.com/insightsengineering/teal.gallery/issues/24#issuecomment-1709428674</a>, or unsubscribe<a href="https://github.com/notifications/unsubscribe-auth/ACBNDL5NDZCASBG7IAW7ABTXZE6VRANCNFSM6AAAAAAYILCMXQ" rel="nofollow" target="_blank" >https://github.com/notifications/unsubscribe-auth/ACBNDL5NDZCASBG7IAW7ABTXZE6VRANCNFSM6AAAAAAYILCMXQ</a>. You are receiving this because you were mentioned.Message ID: <em><strong>@</strong></em>.***></p>

czqiu avatar Oct 10 '23 18:10 czqiu

Hey @czqiu. This error message indicates that there were some problems with installing Matrix package (that is needed for teal.logger) on your machine:

Error: Error installing package 'Matrix':
(...)
Warning in system(paste(cmd, "shlib-clean")) : 'make' not found
Warning in system(cmd) : 'make' not found
ERROR: compilation failed for package 'Matrix'

Because it's specific to your machine, there is little we can do to be honest and you would have to figure this out on yourself. I would recommend to try to install Matrix individually (i.e. renv::install("Matrix")) and then rely on the renv caching mechanism so it won't try to re-install it again and use the one you have installed.

pawelru avatar Oct 11 '23 06:10 pawelru

Thanks, I will try again

Best Eric

Get Outlook for iOShttps://aka.ms/o0ukef


From: Pawel Rucki @.> Sent: Wednesday, October 11, 2023 12:55:24 AM To: insightsengineering/teal.gallery @.> Cc: Zunqiu Chen @.>; Mention @.> Subject: Re: [insightsengineering/teal.gallery] [I got error message: Error in error_if_stageddeps_inexistent(project) : file staged_dependencies.yaml does not exist in project folder: not restoring anything ]:

(Issue #24) <p>Hey @czqiu<a href="https://github.com/czqiu" rel="nofollow" target="_blank" >https://github.com/czqiu</a>. This error message indicates that there were some problems with installing Matrix package (that is needed for teal.logger) on your machine:</p> <p>Error: Error installing package 'Matrix': (...) Warning in system(paste(cmd, "shlib-clean")) : 'make' not found Warning in system(cmd) : 'make' not found ERROR: compilation failed for package 'Matrix'</p> <p>Because it's specific to your machine, there is little we can do to be honest and you would have to figure this out on yourself. I would recommend to try to install Matrix individually (i.e. renv::install("Matrix")) and then rely on the renv caching mechanism so it won't try to re-install it again and use the one you have installed.</p> <p>— Reply to this email directly, view it on GitHub<a href="https://github.com/insightsengineering/teal.gallery/issues/24#issuecomment-1756965438" rel="nofollow" target="_blank" >https://github.com/insightsengineering/teal.gallery/issues/24#issuecomment-1756965438</a>, or unsubscribe<a href="https://github.com/notifications/unsubscribe-auth/ACBNDLYIMOMZW5TCNNZFDN3X6Y7FZAVCNFSM6AAAAAAYILCMXSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJWHE3DKNBTHA" rel="nofollow" target="_blank" >https://github.com/notifications/unsubscribe-auth/ACBNDLYIMOMZW5TCNNZFDN3X6Y7FZAVCNFSM6AAAAAAYILCMXSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJWHE3DKNBTHA</a>. You are receiving this because you were mentioned.Message ID: <em><strong>@</strong></em>.***></p>

czqiu avatar Oct 11 '23 22:10 czqiu

Closing this stale issue

pawelru avatar Nov 01 '24 09:11 pawelru