Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 4 years ago.
Improve this question
I have tried to reproduce the one mentioned in the link https://rpubs.com/jbkunst/hctreemap2. But getting error message as
"Error in hctreemap2(data = GNI2014, group_vars = "continent", size_var = "population") : could not find function "hctreemap2". Also verified the dependencies but not sure what is missing. Please help!!!
The current version of highcharter, version 0.5.0, was published 2017-01-17 08:36:29, as you can see from the documentation. hctreemap2 was proposed since then and is in development. It is not in highcharter as it is released on CRAN. You could theoretically pull the code from github if you wanted, it's in the dev repo under treemap5.R, and looks to be something they'll include in the 0.6.0 release.
Related
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
I can't make the first example of the first Shiny Tutorial to work.... on windows 10, R 3.6.1
I followed : https://shiny.rstudio.com/tutorial/written-tutorial/lesson1/
I get some part of the app : title / input field... no CSS, not working... only the title as shown below : :-(
The issue was coming from one special caracter in my username !
My usernmae "stéphane" was transformed by R into "stiphane"... was led to a wrong path name for the shiny files...
Creating another Windows user without any accentuated caracter wolved the problem...
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 4 years ago.
Improve this question
I have an R script where I use the following code:
gspcRets = diff( log( Cl( qxts ) ) )
When i run the script from RStudio everything works fine.However,when i run the script from Terminal with the command:
RScript my_script.R
I get the following error:
Error in Cl(qxts) : could not find function "Cl"
My script loads all the necessary libraries.I assume it has something to do with the fact that my system needs some kind of access to the RStudio environment.Any ideas?
I forgot to load the "quantmod" package.An RStudio's active session continues to use the packages that have been loaded previously even after i used the command:
rm(list=ls(all=TRUE))
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 5 years ago.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Improve this question
I want to use a function from one script in another script but i either get an erorr or nothing is happend, depend on my code syntax. When i use the source("file_name) i get an erorr, and when i add the if(exists("function_name", mode = "function")) i get nothing..
hope you can help
have a good day
Or
In a different way you can choose your code script file using file.choose (avoiding problems related to the working directory) like this:
source(file.choose())
Terru_theTerror is absolutely right: it looks like there is something wrong with your source folder.
You may check the current name of your working directory with getwd() and check what contains this directory by dir(). If there your source file is placed elsewhere, your should change your current directory or to include the path to your source file by using source():
source_dir_name <- "D:/Work/Sources"
source_file_name <- "file_Name.R"
source_with_path <- paste(source_dir_name,"/", source_file_name, sep = "")
#
setwd(source_dir_name)
source(source_file_name)
# or
source(source_with_path)
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 years ago.
Improve this question
I am trying to understand how Rcpp modules work. I tried the full example (on page 14) in the Rcpp vignette. However, I don't know where fx_vec is defined, therefore I am not able to run the full example.
Then, I tried to compile the package is Rcpp source code (here). I had to make the following changes to compile the package
I had to delete the zzz.R file in the R folder.
I had to comment the line 48 in stdVector.cpp (//.method( "resize", &vec::resize))
I am able to compile the testRcppModule package now (original source code here), however, I am still not able to run the program modules.R in the test folder. For reference, the package I have been to compile can be found here (note that the package names varies slightly from the original name in Rcpp).
The error I get on running code v <- new (vec) in modules.R is as follows
> library(testRcppmodule)
> v <- new(vec)
Error in .getClassFromCache(Class, where, resolve.msg = resolve.msg) :
object 'vec' not found
You may want to consider posting on rcpp-devel with a fuller example. What you have above is not really self-contained.
As for 'do Modules work' we offer a resounding Sure!! as testing them is
part of every unit test run, see the test script using this fully self-contained example package
many packages using Modules as eg my RcppRedis package, my RcppAnnoy package, my RcppCNPy package etc
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
I am using Rmarkdown and knitr in RStudio. I used this code in Rmarkdown and I knit it by knitr but I cannot see the dataset in my console environment.
load(url("http://bit.ly/dasi_gss_data"))
What should I do?
I did this
```{r}
load(url("http://bit.ly/dasi_gss_data"))
table(gss$year)
```
and it worked just fine.
Are you expecting to see gss in your console environment? It won't show there.