How to get the basic example Shiny app working? [closed] - r

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...

Related

hctreemap to hctreemap2 --> Could not find function "hctreemap2" [closed]

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.

calling a function from another script [closed]

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)

File path issues in R using Windows ("Hex digits in character string ...) VersionXY [closed]

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 5 years ago.
Improve this question
I have this issue already mentioned by many. My R code worked on a computer at my previous job (with \s), but does not work any more on a new computer
My case is that R is returning this message:
Error: '\U' used without hex digits in character string starting "'C:\U" ,
even when there are actually no "\" in code. I have tried all the options suggested in previous posts (i.e. \, /, //, \\, ////), but it does not work.
I use R version 3.4.1 (2017-6-30) and Office 2016.
Any suggestions are greatly appreciated.
One way to get around file path issues in R is to use forward slashes in your path, e.g.
U:/path/to/file.ext

Using load in R markdown [closed]

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.

how can i run unix command inside a makefile? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 9 years ago.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Improve this question
First I have no idea what I am doing so sorry if the question is absurd.
I have a makefile I run at work. The command line for it is:
make -f libclmcomm.so.mak
At the start of this file I want to issue a unix command. Let's just start with echo hi.
So I edited my file and typed:
echo hi
at the type but when I run my make command I get the following error:
missing seperator
StackOverflow is for specific questions, not tutorials. I recommend you read the GNU make manual to understand what make is and how it works: http://www.gnu.org/software/make/manual/html_node/index.html
Your question really doesn't make sense as related to make. Make runs commands that build targets. Every command it runs must be associated with a target to be built. That's why adding a command at the beginning doesn't work: a makefile is not a shell script (if you just want to run a bunch of commands in order the same way every time, then make is not the tool for you: just write a script).
You need to add the command in the right place. It is probably good enough to search through the file for the first line that is indented (with a tab) and place 'echo hi' (also indented with a tab) before that line. Very likely, this will appear after an unindented line that includes the text all:.

Resources