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.
Related
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 2 years ago.
Improve this question
have a RMarkdown document that I can convert at the command line with Pandoc and the --number-sections switch. The section numbers render 100% in the converted HTML.
However, I want to knit in the R chunks.
When I try and do a Knit to HTML in RStudio on the same file with the YAML header:
the sections numbers are not rendered. What am I doing wrong with the YAML?
Selecting the Knit with parameters option also says there are no parameters, should it not read the YAML header and see them?
Should be an underscore, i.e. number_sections: TRUE. (;
See https://bookdown.org/yihui/rmarkdown/html-document.html
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 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.
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)