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

[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> #24

Closed
3 tasks done
czqiu opened this issue May 19, 2023 · 15 comments
Assignees
Labels
question Further information is requested

Comments

@czqiu
Copy link

czqiu commented May 19, 2023

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

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

Contribution Guidelines

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

Security Policy

  • I agree to follow this project's Security Policy.
@czqiu czqiu added the question Further information is requested label May 19, 2023
@donyunardi
Copy link
Contributor

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.

@czqiu
Copy link
Author

czqiu commented May 22, 2023

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

@czqiu
Copy link
Author

czqiu commented May 22, 2023

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

@donyunardi
Copy link
Contributor

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

@chlebowa
Copy link

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?

@czqiu
Copy link
Author

czqiu commented May 23, 2023 via email

@donyunardi
Copy link
Contributor

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:

teal.gallery/DESCRIPTION

Lines 19 to 22 in 0054787

checkmate,
renv,
shiny,
utils

(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 calledteal.code2: 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.

@czqiu
Copy link
Author

czqiu commented May 23, 2023 via email

@islander23
Copy link

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)

@pawelru
Copy link
Contributor

pawelru commented Jul 17, 2023

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

@donyunardi
Copy link
Contributor

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?

@czqiu
Copy link
Author

czqiu commented Oct 10, 2023 via email

@pawelru
Copy link
Contributor

pawelru commented Oct 11, 2023

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.

@czqiu
Copy link
Author

czqiu commented Oct 11, 2023 via email

@pawelru
Copy link
Contributor

pawelru commented Nov 1, 2024

Closing this stale issue

@pawelru pawelru closed this as completed Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

6 participants