Incomplete stack blitz ngbd table example - ng-bootstrap

Has anyone worked with the "complete example" on ngbd table.
example list
I am trying to set up the complete example found at the bottom.
When loading the stack-blitz it gets an import error.
"Import error, can't find files:
./country.service
./sortable.directive"
Does anyone have a example combining the sorting,paginating and search/filtering with ng-bootstrap?
Currently I am trying to combine the standalone examples into one without luck.

I've put together a working demo. I found the missing classes here, so copied them across into this StackBlitz.

Related

Link to R6 method from separate package in help pages and pkgdown

Cross posted from: https://community.rstudio.com/t/link-to-r6-method-from-separate-package-in-help-pages-and-pkgdown/134702
I'm currently writing an R package and would like to link to the help page for an R6 method in a separate package. The page I want to link to is here: https://mc-stan.org/cmdstanr/reference/model-method-sample.html, and there is an .Rd file for the method as well (https://github.com/stan-dev/cmdstanr/blob/master/man/model-method-sample.Rd). Finally, I can also access the help page from R directly with ?cmdstanr::`model-method-sample`.
However, when I try to add a link to my own help page using the normal link to another package syntax described here, [cmdstanr::`model-method-sample`], I get this error:
Warning: Link to unknown topic: cmdstanr::`model-method-sample`
I feel like there must be some way to link to this help page, given that it definitely exists and has an .Rd page, but I haven't found a solution yet. Has anyone else run into this problem or know the solution?
I think you (or Roxygen) are using the wrong syntax for the link. According to Writing R Extensions, the Rd syntax should be:
\link[cmdstanr]{model-method-sample}
I'm not sure how to generate this from Roxygen, but it appears to work as-is if I put it in Roxygen comments.
If you want the link with different text, the syntax is
\link[cmdstanr:model-method-sample]{link text}

How to see all the code from the Example on pub.dev/packages

When looking at the Examples in the pub.dev/packages, the code for some contained with one page, while the more advanced ones are not showing all the code. For example, in the firebase_auth package, the Example shows the main.dart file, while the most important code is probably at the other two imported files:
import './register_page.dart';
import './signin_page.dart';
My question - How do I see the two files?
Thanks, Gal.
You can use this package by call some function and use IDE to jump to definition for example command + click in VS code.
Or you can open library file in directory flutter_dir/.pub-cache/hosted/pub.dartlang.org/name_of_lib/lib

Atom IDE : Vertical code folding lines to improve code readability

I have searched on this for quite some time and am unable to find an answer after which I've turned to you folks. I am working with the Atom IDE and my query is very simple - I would like to have to vertical faint lines which run from beginning of a code block to its end which improves code readability. I've made several searches on google for an answer to this but am unable to get a solution.
I don't want to fold the code. I just want those awesome lines.
What it is:
What I would like:
Thank you in advance.
Go to settings and check "show indent guide".
You may also try to install package "indent-guide-improved".

\code{\link{function-name}} in roxygen2

It is my first experience in writing an R-package. I used roxygen2 by following the instructions given in this link http://kbroman.org/pkg_primer/
Everythig is working fine except few things.. there could be a simpler solution to solve the issues, but I am not finding clues what I am doing wrong. I hope someone here in this blog can give a solution to solve my issues.
First issue is about {\code\link{function-name}} in roxygen2:
In .R script I inlcuded this line:
#' #seealso \code{\link{s2a}}
After documenting (generating .Rd files) there is no hyperlink to s2a ,
in documentation s2a shows like a normal text not like hyperlink..
export(s2a) is listed out in NAMESPACE.
Is there any other place i need to modify ?
Second issue is about data():
I saved the dataset in .Rdata format and placed in the data/ in package directory. I also created the .R script in R/ as like following steps here http://kbroman.org/pkg_primer/pages/data.html
In DESCRIPTION file LazyData: true .
but when I type data(shh) in R console gives a warning message
data(shh)
Warning message:
In data(shh) : data set ‘shh’ not found
Any ideas is of great help:)
It's been a while since you asked this, but I was having the exact same problem with hyperlinks in documentation not appearing correctly, so for anyone who might be having a similar problem: Are you possibly viewing the development documentation? The links don't seem to work there. (You'll know this is the case if you see Using development documentation for your_function_name in your console output when you run ?your_function_name.)
The links should appear in the non-development documentation. To generate this you can try building and reloading your package, for instance by following the steps here: http://r-pkgs.had.co.nz/man.html#man-workflow-2

MBTile Example Project - could not find column named tile_data

I have a problem regarding the implementation of a exported mbtiles file with route-me. I used the example on github and was able to compile and view the example map (control-room).
Now I tried to use an TileMill exported mbtiles file with the example and it did not work. It does not find the tiles for displaying.
I get this error message: Warning: I could not find the column named 'tile_data'.
I think it has to do with the column and row indexes but I was not able to figure out or fix the issue. Does someone have the same experience or a good tutorial for implementing a TileMill export to an iphone application.
Thank you very much in advance.
Thomas

Resources