Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
Background: If you want to modify one of your customly defined functions, you can access the source code by selecting the function name and press "F2", or ctrl-click it. This will take you to the function source and you can make changes.
Problem: You are redirected to a read-only definition of your function (indicated by read-only glasses icon appearing in the tab in rstudio) instead of your source script. (This is a similar behaviour as if you were inspecting a function loaded from a package or base R.)
Question: What should I do to remove the read-only mode? I want to be able to edit the functions again.
I would like to know what I could have done to run into the aforementioned problem, not to do it again.
That does provide directions to edit pre-built functions from packages. If this is a function you have created, then the part about copy/paste/edit would suffice to redefine the function.
In your case, view whatever the function is (I made this one up), copy it into your console and change it as you please.
> View(mathFunction)
function(x,y,...) {sum(x, y, ...)} # this will show up in a window.
> mathFunction <- function(x,y,..., digits = z) {round(sum(x, y, ...), digits = z)} # redefine it
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I am using windows 10 on a DELL laptop. I previously could use the shortcut copy option (Ctrl + C) to copy data frame directly into excel from R using the paste option (Ctrl + V). However, upon a recent trial, the data does not show up in excel. This is not the case when I copy a text from R studio and paste it in either excel or word.
What could be accounting for this?
Thanks in advance for the help.
Would it not be easier to save the data frame as a CSV file?
write.csv(df, file="df.csv")
Which saves to your directory.
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'm in current versions of RStudio, R, and rgl(.99.16) as of this writing.
It seems that quads3d() produces nothing visible until another object is displayed. For example, I do
library(rgl)
Face <- matrix(c(0,-.2,-.5,
.2,.2,-.5,
.2,.2,.5,
0,-.2,.5), nrow=4, byrow=T)
open3d()
quads3d(Face)
...and nothing appears in the RGL device. Face can be any set of 4 xyz coordinates.
However, if I say, for example,
arrow3d(p0=c(0,0,0), p1=c(1,1,1))
(which successfully produces an arrow),
then subsequent executions of quads3d(Face) and other quads3d() statements do, in fact, successfully render the shape in the device. In general, under some environmental conditions which I haven't been able to pin down exactly (new rgl device plus empty workspace?) quads3d() generates nothing visible until another rgl statement is successfully executed.
Is there something I need to do to initialize an rgl device? How do I ensure that valid quads3d() with "good" data will consistently produce something in the rgl device?
Your original version in fact does render the face. But the orientation is such that in the initial view it is seen end on and has zero width.
Rotate the view then you can see it
For example, try this:
Face <- matrix(c(0,-.2,-.5,
0,.2,-.5,
0,.2,.5,
0,-.2,.5), nrow=4, byrow=T)
open3d()
quads3d(Face)
play3d(spin3d(), duration = 5)
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 7 years ago.
Improve this question
I'm trying to use the function isdigit but R can't find it, even after I installed the qmrparser package and submitted the code library(qmrparser).
(I'm brand new to R so please explain like I'm 5!)
Try
library(qmrparser)
to load / attach the package. Failing that, try
qmrparser::isdigit()
to call it up explicitly using the :: operator along with the package name.
You can have thousands of packages installed, so installed does not automate loading (though you can arrange for that, but that is a different topic).
Edit: And if the function is not accessible even after loading try the 'triple-:' operator to access non-exported sysmbols:
qmrparser:::isdigit()
Edit 2: Your premise was wrong as the function is called isDigit with a capital-D. So you have to type
isDigit()
which will get you the function as it is exported via NAMESPACE.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
Is it possible to convert the native vector shapes created in After Effects into adobe Illustrator or Eps etc? Tried exporting as SWF but still it converts into raster graphics and loses vector data.
Even if 3rd party scripts are available, please let me know.
One of the simplest ways of doing this, if you have Illustrator handy, is to turn on Illustrator's AICB support in preferences ("Clipboard Handling"), with "Preserve Paths" on. Then you can copy all the masks in a layer and paste them into a document in Illustrator.
If you're working with masks on Solids, the masks are fairly easy to copy. With Shape Layers, it is a little more tricky; you have to at least start with the path of the shape selected. It might be worth converting shape layer paths to masks on solids first. There's a script over at aescripts.com for that.
highlight literally just frame 0 from each Mask Path (don't just select all keyframes across the timeline) then holding shift to get the first frame of all shape layers or do one at a time and then paste that into Illustrator.
I just wanted to use some icons in a video but needed them as vectors as well for print.
so I chose the frame I wanted to use in AE, composition - save frame as- I chose PS file -then I opened it in Illustrator and image traced it. Because I had simple shapes on a transparent background it worked beautifully.
15 seconds from an AE robot to an AI robot
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 11 months ago.
The community reviewed whether to reopen this question 11 months ago and left it closed:
Original close reason(s) were not resolved
Improve this question
I'm redirecting console output to a file, and getting [?25h and [?25l mixed in with my regular output. I've looked online and apparently they are the sequence characters for cnorm and civis, whatever those are. Is there any way to suppress these in the output?
One thing you might try is to set the TERM environment variable to something
that doesn't support those features, for example with a Bash command like this:
env TERM=dumb yourcmd > yourfile
(Where yourcmd is the program whose output you'd like to redirect to output file yourfile)
For other shells, you might have to do something more like
setenv TERM dumb
yourcmd > yourfile
I ended up piping through sed. Jim's info is still very helpful, though. I used this command:
sed 's/\[?25[hl]//'
Incidentally, it catches [?25h and [?25l, but not when they're in succession ([?25h[?25l). Any suggestions for that?