Comments (12)
Please, send the file by e-mail.
from nvim-r.
from nvim-r.
There is no attachment. You have to send it directly to my e-mail (jalvesaq at gmail.com), not as a reply to a Github comment.
from nvim-r.
The issue was happening when the S4 object had a "label" attribute. Maybe it's fixed on the branch https://github.com/jalvesaq/Nvim-R/tree/S4label but it doesn't seem to be very stable: sometimes, the tree doesn't open...
from nvim-r.
@jalvesaq Thanks for your response!
Unfortunately, S4label branch did not solve the problem in my environment.
One thing I noticed is that this S4 object's structure is little strange.
The output of str(promoter)
is the same as in the image in the previous post.
Five of the slots (type, by, label, upstream and downstream) are somehow with the "$" prefix instead of "@", although these slots cannot be accessed by "$".
promoter$label
# NULL
promoter@label
# "TSS"
I don't know if this is related issue though.
from nvim-r.
I forgot to increase nvimcom version number. It should (imperfectly) work now.
from nvim-r.
Now the problem is almost solved. Thanks!
Although it's not a big problem for me, the object looks like this now.
It does not show the five slots (type, by, label, upstream, downstream), and somehow the value in the 'label' slot ('TSS') is shown next to the object name. I can still use str
to view these slots.
So far I haven't had seen cases where the tree does not open.
from nvim-r.
I don't know much about S4 objects, but nvimcom.c
runs only slotNames()
and not names(attributes())
to list the elements of a S4 object. The results are different:
slotNames(promoter)
names(attributes(promoter))
All slots are attributes, but not all attributes are also slots. I didn't know about this. The "label" attribute receives special treatment in Nvim-R because they are frequently used as variable labels in data.frame
s. So, "TSS" is shown as the label of promoter
in the Object Browser. The other attributes are ignored.
from nvim-r.
Attributes can be accessed with the @
symbol in S4, but not in S3 objects:
dtfrm <- data.frame(xxx = c(1, 2, 2), aaa = c("a", "b", "c"))
attr(dtfrm, "label") <- "The label"
dtfrm@label
from nvim-r.
This S4 object slot configuration looks little strange to me.
I'm not very familiar with the S4 object configuration, but at least I've never seen S4 objects like this.
For this object, some of the attributes (e.g. label) are not slots, but still can be accessed by "@".
promoter@label
# "TSS"
Again, your fix is good enough for me, and I appreciate your quick response!
from nvim-r.
I did a minor optimization a few minutes ago but I will merge the code into the master branch soon.
from nvim-r.
Merged now. Thanks for your contribution!
from nvim-r.
Related Issues (20)
- Regression: prompt with ANSI escape sequences HOT 6
- Autocomplete with non-loaded library HOT 5
- Nvim-R requires Tmux >=3.0 but 3.3a version installed HOT 6
- SendLineToR fails with error "unexpected numeric constant" HOT 3
- Fresh LunarVim install with Nvim-R exits with SIGABRT HOT 7
- `R_app`, `R_cmd` options are not respected in LunarVim HOT 7
- Large objects don't seem to be able to fill secondary lists with completions (<C-n><C-o>) HOT 5
- Autocomplete for function parameters stops working when R opens HOT 2
- `RQuarto()` should escape Windows path seperator before sending to R HOT 2
- Unknown function: nvim_set_option_value HOT 2
- No new features in Nvim-R
- Is it possible to change the indentation behavior after parenthesis to be the same as curly brace? HOT 3
- How to use Python in Quarto with Nvim-R HOT 3
- Announcement: stable and oldstable branches deleted
- Problem with roxygen commands HOT 4
- Error on keyword completion HOT 2
- Incorrect Rendering of Tufte Style Output in R Markdown Document HOT 5
- Nvimcom fails to install on FreeBSD HOT 5
- Cannot start R: nvimrserver not running HOT 5
- neovim 0.10 version startup issue HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nvim-r.