I am trying to create a table using
knitr::kable(head(mtcars[, 1:4]), "simple")
knitr::kable(head(mtcars[, 1:4]), "pipe")
Although this should work according to https://bookdown.org/yihui/rmarkdown-cookbook/kable.html,
it just returns could not find function "kable_pipe".
knitr::kable(head(mtcars[, 1:4]), "html")
and
knitr::kable(head(mtcars[, 1:4]), "latex")
work perfectly fine.
Does anyone know why?
So I had the same problem as this and figured out the problem is that the default knitr install needs to be updated. I think knitr is installed for Rstudio usage. Maybe it uses an old version?
Anyway solution is to do
install.packages("knitr")
and then restart R. Should work after that.
Related
I have a problem when I tried to integrate tiki with my LDAP server. In the test_ldap.php I wrote the code to debug according to this website (https://doc.tiki.org/LDAP%20authentication). This code returned a success. So I know that my LDAP is working fine. I have a problem at
$entry = Net_LDAP2_Entry::createConnected($this->_ldap, $this->_entry);
In the shiftEntry function in Search.php. When I return debug in here, it goes to ClassLoader.php and it go to
register_shutdown_function(function () {
TikiLib::events()->trigger('tiki.process.shutdown', []);});
In my opinion, maybe the problem is the
spl_autoload_call
The spl_autoload_call function called Net_LDAP2 which extends PEAR somewhere before this line in Search.php. This would lead both Net_LDAP2 and PEAR and PEAR_ERROR... Then when it comes to Net_LDAP2_Entry class, it would also load PEAR.... Would this create a fatal error?
I keep having blank screen in my tiki. Tried to cut the code from Search.php to the test_ldap.php to test. It has the same problem.
I am using:
Version 16.2
OS: Clear OS
Thanks for your help. I am blocked now.
I think this may be a good start: https://dev.tiki.org/item6283. If you look in the comments by albertgi he states changing some function names in PEAR.php. I was having LDAP integration problems and this was one of the key problems.
I am trying to access an imageurl via inlinecondition in fluid.
The none inlineversion works well and returns the URI of that image:
<f:uri.image image="{data.image.0}" />
returns:
fileadmin/user_upload/jumbotron.jpg
This one doesn't:
{f:uri.image(image:data.image.0)}
I have tried different versions with {}, without, with '' without ...
My environment is: TYPO3 8.2 (as I can't update cause extensions I need are only available till this version for now)
Can someone please help me?
Seems this was a bug in 8.2 - After updating to 8.4 it works like charm.
This code works:
{f:uri.image(image:data.image.0)}
Try using {f:uri.image(image:'{data.image.0}')}, mind the escaping
hi I am new to jedit and I am trying to install a feature that lets me copy the current line when nothing is selected. I found this macro here http://www.jedit.org/users-guide/macros-clipboard.html under Copy_Selection_or_Line.bsh.
it seems like it is a default macro and I should be able to just use it without installing anything. but I can't find it in the list.
then I tried using the code for this macro here https://github.com/aismail/sedemo2011/blob/master/lib/jason/bin/jedit/macros/Clipboard/Copy_Selection_or_Line.bsh
I installed it and I can now enable it, but it doesn't work.
I spent ages trying to get this macro working but it's just not working. anyone able to give me a hand? thanks
The Copy_Selection_or_Line.bsh macro was renamed 7 years ago as can bee seen here: https://sourceforge.net/p/jedit/svn/11860.
It seems the documentation was not updated accordingly.
Would be great if you open a documentation bug here: https://sourceforge.net/p/jedit/bugs/new/
This shipped macro should work without any problems.
What you linked above is the macro as it was before that change I linked. It could well be that some API changed since 7 years ago and that the macro is not usable as is. Is the Copy_Lines.bsh macro doing what you want? If not, it could maybe at least help in updating the old Copy_Selection_or_Line.bsh macro to work with current jEdit.
I modified the macro (attached below):
// My Copy_Selection_or_Line.bsh
if (textArea.getSelectionCount() == 0) {
caretLine = textArea.getCaretLine();
lineEndOffset = textArea.getLineEndOffset(caretLine);
textArea.setSelection(new Selection.Range(textArea.getLineStartOffset(caretLine), textArea.getBufferLength() >= lineEndOffset? lineEndOffset : lineEndOffset-1));
}
Registers.copy(textArea,'$');
I need some help with Stata. I'm not sure if this is the right forum, but hopefully somebody can help me.
The problem occur, when I want to use new commands in stata. I will explain it with an example: command outreg. I assume the problem is the version.
Stata Details:
Version 10.1
Unlimited-user Stata for Windows (network) perpetual license (decompressed in C:\Program Files (x86)\Stata)
I downloaded the command ssc install outreg
I tried the new command with the example given here:
http://www.ats.ucla.edu/stat/stata/faq/outreg.htm
After execution, the following error occur, after outreg using test.doc, nolabel replace
MakeSmat(): 3499 _CColJoin() not found
CalcStats(): - function returned error
<istmt>: - function returned error
Stata.com also provide a solution for the problem:
http://www.stata.com/statalist/archive/2011-07/msg01018.html but a restart of stata doesn't work for my problem.
The necessary library (l_cfrmt described in the stata.com link) is also available:
. mata : mata query
Mata settings
set matastrict off
set matalnum off
set mataoptimize on
set matafavor space may be space or speed
set matacache 400 kilobytes
set matalibs lmatabase;lmataado;lmataopt;l_cfrmt
set matamofirst off
But when I search for the usage of the library l_cfrmt (which is necessary for outreg) there occur the following error-message:
. mata : mata desc using l_cfrmt
c:\ado\plus\l\l_cfrmt.mlib from a more recent version of Stata
It looks, if the version, which I loaded via ssc is not compatible with the Version 10.1 of Stata.
Does somebody have any idea how to solve this problem? I search for a few hours now, but I did't find any possible solution.
Regards,
Michael
First, the code you found on the ucla website for -outreg- is not correct -- John Gallup has since made many changes to the latest version of -outreg-, one of which affects your example. (ignoring your mata issue for a moment) This code should be modified to this in order to make it run:
**install latest outreg
ssc install outreg, replace
use http://www.ats.ucla.edu/stat/stata/notes/hsb1, clear
regress read write
outreg using test.doc, novarlabel replace
the code above works on my machine with an updated version of Stata 12 MP and updated -outreg- version 4.12.
Regarding the mata error: It might be the case that the newest -outreg- just might not work with Stata 10.1 - but I wouldn't give up yet. First, make sure your Stata is fully updated (-update query- and -update all-).
Second, follow the advice of the author of -outreg- in this Statalist thread:
http://www.stata.com/statalist/archive/2011-07/msg01014.html
Finally, if you do have a missing mata component/library, as that thread hints at, and cannot follow this advice to correct it, then consider re-installing Stata and/or contacting Stata tech support.
I'm increasingly using cfscript, and like it where appropriately used.
One problem is that there doesn't appear to be any code assist for cfscript in CF Builder, so I find myself writing the tag of a function to leverage the code Assist, then converting to cfscript (which is silly).
For example:
addParam() is the cfscript equivalent of <cfqueryparam >. I get code assist when writing the the tag version, but not the script equivalent.
Does anyone know if there is a code assist library available for cfscript in cfBuilder? Or is this just a downside of working with cfscript?
Many Thanks in advance!
Jason
Your example is not using native CFScript, it's using the hack-solution Adobe provided for some shortcomings of CFScript's coverage of CF tags, which are implemented as a bunch of CFCs in the custom tags dir of your install. This stuff is not representative of CFML & its CFScript support as a whole.
I find that CFB gives hinting for most native functionality... is this not the case for you? What if you try listAppend() for example? Do you get code-assist for that?
UPDATE
I wonder if you get a warning in CFB on your line equivalent to this:
o = new Query();
? I do, by default. I have to make a link to the CustomTags/com dir, and then use this syntax:
o = new com.adobe.Query();
Then I don't get a warning, and indeed I get the code assist you're expecting. I cannot get it to give me hinting on just the non-qualified path to Query.cfc though.
Not ideal. Or maybe I'm missing something, too.