-
Notifications
You must be signed in to change notification settings - Fork 38
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
Code Profiling unable to produce html output #116
Comments
What happens when you run: library(profvis)
profvis({
# code here
}) If that works, but Profile -> Profile Selected Line(s) does not, then it is probably an issue with the RStudio IDE, and you can file it here: |
Thank you for your fast reply! Unfortunately the error stays the same.
The error remains:
|
I suspect this is a problem with the htmlwidgets package looking for pandoc in the wrong place. If you run this: p <- profvis({
# Code here
})
htmlwidgets::saveWidget(p, "profile.html") I think the same error will occur when you run The error you're getting is coming from here: If I'm right about this, then I suggest filing an issue on the htmlwidgets repository. |
Also, you can probably reproduce the error by calling: htmlwidgets:::find_pandoc() |
Yes, both When I try |
Closing since resolved in the linked issue. |
Hi everyone. I had the same problem. I solved it when I install xfun package and restart my environment. |
I'm using Rstudio with R version 3.6.2 on MacOS Catalina. I installed R through anaconda into a specified environment. Using the conda-forge distribution I installed the
profvis
(version: 0.3.6) package.When I try to profile e.g. a selected line in a script by clicking Profile -> Profile Selected Line(s) the profiling runs but I get following error and not html output is generated:
When I check in my terminal where pandoc is located (
which pandoc
), I get following output:And checking for the version (
pandoc --version
), I get:So I'm wondering why profvis adds another
pandoc
to the path (/Users/pweide/opt/miniconda3/envs/r_env/bin/pandoc
) to identify the version? Obvisously/Users/pweide/opt/miniconda3/envs/r_env/bin/pandoc/pandoc
does not exist, hence the error.How can I redirect profvis to use the right path?
The text was updated successfully, but these errors were encountered: